2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, bitlist
|
|
|
|
, buildPythonPackage
|
|
|
|
, fe25519
|
|
|
|
, fetchPypi
|
|
|
|
, fountains
|
|
|
|
, nose
|
|
|
|
, parts
|
|
|
|
, pytestCheckHook
|
2022-03-30 09:31:56 +00:00
|
|
|
, pythonOlder
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ge25519";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.2.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-30 09:31:56 +00:00
|
|
|
hash = "sha256-8GsNY62SusUmQcaqlhKOPHbd0jvZulCaxMxeob37JJM=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fe25519
|
|
|
|
parts
|
|
|
|
bitlist
|
|
|
|
fountains
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace " --cov=ge25519 --cov-report term-missing" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ge25519"
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python implementation of Ed25519 group elements and operations";
|
|
|
|
homepage = "https://github.com/nthparty/ge25519";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|