Unverified Commit 6ee0933c authored by Tom Hunze's avatar Tom Hunze
Browse files

python313Packages.pystemd: fetch src from GitHub

parent bda800cd
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
{
  buildPythonPackage,
  lib,
  fetchPypi,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  systemd,
  lxml,
@@ -16,16 +16,13 @@ buildPythonPackage rec {
  version = "0.13.4";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-8G1OWyGIGnyRAEkuYMzC9LZOULTWt3c8lAE9LG8aANs=";
  src = fetchFromGitHub {
    owner = "systemd";
    repo = "pystemd";
    tag = "v${version}";
    hash = "sha256-Ph0buiyH2cLRXyqgA8DmpE9crb/x8OaerIoZuv8hjMI=";
  };

  postPatch = ''
    # remove cythonized sources, build them anew to support more python version
    rm pystemd/*.c
  '';

  buildInputs = [ systemd ];

  build-system = [