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.

51 lines
882 B
Nix
Raw Normal View History

2021-03-03 12:52:49 +00:00
{ lib
, bitlist
, buildPythonPackage
, fetchPypi
, fountains
, parts
, nose
, pytestCheckHook
, pythonOlder
2021-03-03 12:52:49 +00:00
}:
buildPythonPackage rec {
pname = "fe25519";
version = "1.2.0";
format = "setuptools";
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-Hzdt8932WonJAaQPtL346JFPqxFXkNW4XQvbQlSoJJE=";
2021-03-03 12:52:49 +00:00
};
propagatedBuildInputs = [
bitlist
fountains
parts
];
checkInputs = [
nose
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --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 ];
};
}