diff options
Diffstat (limited to 'pkgs/development/python-modules/python-daemon/default.nix')
-rw-r--r-- | pkgs/development/python-modules/python-daemon/default.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/python-daemon/default.nix b/pkgs/development/python-modules/python-daemon/default.nix index bb6cf5d94ea1f..e8e8e2c018f79 100644 --- a/pkgs/development/python-modules/python-daemon/default.nix +++ b/pkgs/development/python-modules/python-daemon/default.nix @@ -4,26 +4,34 @@ fetchPypi, docutils, lockfile, + packaging, pytestCheckHook, testscenarios, testtools, - twine, + setuptools, pythonOlder, }: buildPythonPackage rec { pname = "python-daemon"; version = "3.0.1"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-bFdFI3L36v9Ak0ocA60YJr9eeTVY6H/vSRMeZGS02uU="; + hash = "sha256-bFdFI3L36v9Ak0ocA60YJr9eeTVY6H/vSRMeZGS02uU="; }; - nativeBuildInputs = [ twine ]; + postPatch = '' + sed -i "s/setuptools\.extern\.//g" version.py test_version.py + ''; + + nativeBuildInputs = [ + setuptools + packaging + ]; propagatedBuildInputs = [ docutils @@ -67,6 +75,6 @@ buildPythonPackage rec { gpl3Plus asl20 ]; - maintainers = with maintainers; [ ]; + maintainers = [ ]; }; } |