diff options
Diffstat (limited to 'pkgs/development/python-modules/foolscap/default.nix')
-rw-r--r-- | pkgs/development/python-modules/foolscap/default.nix | 51 |
1 files changed, 31 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/foolscap/default.nix b/pkgs/development/python-modules/foolscap/default.nix index 2da82762195b..3cf3b2beb1b8 100644 --- a/pkgs/development/python-modules/foolscap/default.nix +++ b/pkgs/development/python-modules/foolscap/default.nix @@ -1,37 +1,48 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pyopenssl -, pytestCheckHook -, pythonOlder -, service-identity -, six -, twisted -, txi2p-tahoe -, txtorcon +{ + buildPythonPackage, + fetchPypi, + lib, + mock, + pyopenssl, + pytestCheckHook, + pythonOlder, + setuptools, + six, + twisted, + txi2p-tahoe, + txtorcon, + versioneer, }: buildPythonPackage rec { pname = "foolscap"; - version = "23.3.0"; + version = "24.9.0"; - disabled = pythonOlder "3.7"; + pyproject = true; + build-system = [ + setuptools + versioneer + ]; - format = "setuptools"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-Vu7oXC1brsgBwr2q59TAgx8j1AFRbi5mjRNIWZTbkUU="; + hash = "sha256-vWsAdUDbWQuG3e0oAtLq8rA4Ys2wg38fD/h+E1ViQQg="; }; - propagatedBuildInputs = [ + postPatch = '' + # Remove vendorized versioneer.py + rm versioneer.py + ''; + + dependencies = [ six twisted pyopenssl ] ++ twisted.optional-dependencies.tls; - passthru.optional-dependencies = { + optional-dependencies = { i2p = [ txi2p-tahoe ]; tor = [ txtorcon ]; }; @@ -39,7 +50,7 @@ buildPythonPackage rec { nativeCheckInputs = [ mock pytestCheckHook - ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (lib.attrValues optional-dependencies); pythonImportsCheck = [ "foolscap" ]; @@ -52,6 +63,6 @@ buildPythonPackage rec { ''; homepage = "https://github.com/warner/foolscap"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = [ ]; }; } |