2021-03-03 12:52:49 +00:00
|
|
|
{ lib
|
|
|
|
, bitlist
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fountains
|
|
|
|
, parts
|
|
|
|
, pytestCheckHook
|
2022-03-14 13:36:00 +00:00
|
|
|
, pythonOlder
|
2022-09-19 08:27:16 +00:00
|
|
|
, setuptools
|
2021-03-03 12:52:49 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fe25519";
|
2023-04-30 20:42:00 +00:00
|
|
|
version = "1.4.2";
|
2022-08-08 20:27:04 +00:00
|
|
|
format = "pyproject";
|
2021-03-03 12:52:49 +00:00
|
|
|
|
2022-03-14 13:36:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-03-03 12:52:49 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-30 20:42:00 +00:00
|
|
|
hash = "sha256-VwCw/sS8Pzhscoa6yCRGbB9X+CtRVn8xyBEpKfGyhhY=";
|
2021-03-03 12:52:49 +00:00
|
|
|
};
|
|
|
|
|
2022-09-19 08:27:16 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-03-03 12:52:49 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
bitlist
|
|
|
|
fountains
|
|
|
|
parts
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-03 12:52:49 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-03-14 13:36:00 +00:00
|
|
|
postPatch = ''
|
2022-08-08 20:27:04 +00:00
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "--doctest-modules --ignore=docs --cov=fe25519 --cov-report term-missing" ""
|
2022-03-14 13:36:00 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-03 08:15:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"fe25519"
|
|
|
|
];
|
2021-03-03 12:52:49 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python field operations for Curve25519's prime";
|
|
|
|
homepage = "https://github.com/BjoernMHaase/fe25519";
|
|
|
|
license = with licenses; [ cc0 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|