From 6ee0933c4031822aef061a1e4a96273b15f7b910 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sun, 31 Aug 2025 16:12:13 +0200 Subject: [PATCH] python313Packages.pystemd: fetch src from GitHub --- .../python-modules/pystemd/default.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pystemd/default.nix b/pkgs/development/python-modules/pystemd/default.nix index c580b0dedc3e..ca17d40949fe 100644 --- a/pkgs/development/python-modules/pystemd/default.nix +++ b/pkgs/development/python-modules/pystemd/default.nix @@ -1,7 +1,7 @@ { - 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 = [