diff --git a/pkgs/development/python-modules/fe25519/default.nix b/pkgs/development/python-modules/fe25519/default.nix index 193d7aa60dec..240b000bbbbb 100644 --- a/pkgs/development/python-modules/fe25519/default.nix +++ b/pkgs/development/python-modules/fe25519/default.nix @@ -11,6 +11,7 @@ buildPythonPackage rec { pname = "fe25519"; version = "1.0.0"; + format = "setuptools"; src = fetchPypi { inherit pname version; @@ -28,7 +29,15 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "fe25519" ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "bitlist~=0.5.1" "bitlist>=0.5.1" \ + --replace "parts~=1.1.2" "parts>=1.1.2" + ''; + + pythonImportsCheck = [ + "fe25519" + ]; meta = with lib; { description = "Python field operations for Curve25519's prime";