diff --git a/pkgs/development/python-modules/fe25519/default.nix b/pkgs/development/python-modules/fe25519/default.nix index 4f47b634030e..a19efc6be1c6 100644 --- a/pkgs/development/python-modules/fe25519/default.nix +++ b/pkgs/development/python-modules/fe25519/default.nix @@ -5,16 +5,16 @@ fetchPypi, fountains, parts, + pytest-cov-stub, pytestCheckHook, pythonOlder, setuptools, - wheel, }: buildPythonPackage rec { pname = "fe25519"; version = "1.5.0"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -23,23 +23,18 @@ buildPythonPackage rec { hash = "sha256-la+17tPHjceMTe7Wk8DGVaSptk8XJa+l7GTeqLIFDvs="; }; - nativeBuildInputs = [ - setuptools - wheel - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ bitlist fountains parts ]; - nativeCheckInputs = [ pytestCheckHook ]; - - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "--doctest-modules --ignore=docs --cov=fe25519 --cov-report term-missing" "" - ''; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "fe25519" ]; diff --git a/pkgs/development/python-modules/ge25519/default.nix b/pkgs/development/python-modules/ge25519/default.nix index d3e92913b128..d8bf085d7142 100644 --- a/pkgs/development/python-modules/ge25519/default.nix +++ b/pkgs/development/python-modules/ge25519/default.nix @@ -6,16 +6,16 @@ fetchPypi, fountains, parts, + pytest-cov-stub, pytestCheckHook, pythonOlder, setuptools, - wheel, }: buildPythonPackage rec { pname = "ge25519"; version = "1.5.1"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -24,24 +24,19 @@ buildPythonPackage rec { hash = "sha256-VKDPiSdufWwrNcZSRTByFU4YGoJrm48TDm1nt4VyclA="; }; - nativeBuildInputs = [ - setuptools - wheel - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ fe25519 parts bitlist fountains ]; - nativeCheckInputs = [ pytestCheckHook ]; - - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "--doctest-modules --ignore=docs --cov=ge25519 --cov-report term-missing" "" - ''; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "ge25519" ];