python312Packages.fe25519: refactor, python312Packages.ge25519: refactor (#371400)

This commit is contained in:
Nick Cao 2025-01-06 10:30:52 -05:00 committed by GitHub
commit 399d2f7414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 26 deletions

View File

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

View File

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