49 lines
872 B
Nix
49 lines
872 B
Nix
{ lib
|
|
, bitlist
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fountains
|
|
, parts
|
|
, nose
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fe25519";
|
|
version = "1.0.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-947DIkmg56mAegEgLKq8iqETWf2SCvtmeDZi5cxVSJA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bitlist
|
|
fountains
|
|
parts
|
|
];
|
|
|
|
checkInputs = [
|
|
nose
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "bitlist~=0.5.1" "bitlist>=0.5.1" \
|
|
--replace "parts~=1.1.2" "parts>=1.1.2"
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"fe25519"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|