Skip to content

Commit

Permalink
python312Packages.fe25519: refactor, python312Packages.ge25519: refac…
Browse files Browse the repository at this point in the history
…tor (#371400)
  • Loading branch information
NickCao authored Jan 6, 2025
2 parents 315f5fb + d98510f commit 399d2f7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 26 deletions.
21 changes: 8 additions & 13 deletions pkgs/development/python-modules/fe25519/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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" ];

Expand Down
21 changes: 8 additions & 13 deletions pkgs/development/python-modules/ge25519/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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" ];

Expand Down

0 comments on commit 399d2f7

Please sign in to comment.