nixpkgs/pkgs/development/python-modules/fe25519/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
965 B
Nix
Raw Normal View History

2021-03-03 12:52:49 +00:00
{ lib
, bitlist
, buildPythonPackage
, fetchPypi
, fountains
, parts
, pytestCheckHook
, pythonOlder
, setuptools
2021-03-03 12:52:49 +00:00
}:
buildPythonPackage rec {
pname = "fe25519";
version = "1.4.2";
format = "pyproject";
2021-03-03 12:52:49 +00:00
disabled = pythonOlder "3.7";
2021-03-03 12:52:49 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-VwCw/sS8Pzhscoa6yCRGbB9X+CtRVn8xyBEpKfGyhhY=";
2021-03-03 12:52:49 +00:00
};
nativeBuildInputs = [
setuptools
];
2021-03-03 12:52:49 +00:00
propagatedBuildInputs = [
bitlist
fountains
parts
];
nativeCheckInputs = [
2021-03-03 12:52:49 +00:00
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--doctest-modules --ignore=docs --cov=fe25519 --cov-report term-missing" ""
'';
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 ];
};
}