From 3a74cef93f1293eda84471090393ea68bdbc595f Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Sun, 26 May 2024 08:58:52 +0800 Subject: [PATCH] python312Packages.foolscap: fix build --- .../python-modules/foolscap/default.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/foolscap/default.nix b/pkgs/development/python-modules/foolscap/default.nix index 5c322bd8debde..5db308aa20cd5 100644 --- a/pkgs/development/python-modules/foolscap/default.nix +++ b/pkgs/development/python-modules/foolscap/default.nix @@ -1,32 +1,42 @@ { - lib, buildPythonPackage, fetchPypi, + lib, mock, pyopenssl, pytestCheckHook, pythonOlder, - service-identity, + setuptools, six, twisted, txi2p-tahoe, txtorcon, + versioneer, }: buildPythonPackage rec { pname = "foolscap"; version = "23.3.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="; }; - propagatedBuildInputs = [ + postPatch = '' + # Remove vendorized versioneer.py + rm versioneer.py + ''; + + dependencies = [ six twisted pyopenssl