2020-09-30 20:47:42 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, gmp
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fastecdsa";
|
2021-12-13 21:36:20 +00:00
|
|
|
version = "2.2.3";
|
2021-11-06 22:30:21 +00:00
|
|
|
format = "setuptools";
|
2020-09-30 20:47:42 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-13 21:36:20 +00:00
|
|
|
sha256 = "269bdb0f618b38f8f6aec9d23d23db518046c3cee01a954fa6aa7322a1a7db8f";
|
2020-09-30 20:47:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gmp ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2021-11-06 22:30:21 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# skip tests which require being online to download test vectors
|
|
|
|
"fastecdsa/tests/test_wycheproof_vectors.py"
|
|
|
|
"fastecdsa/tests/test_rfc6979_ecdsa.py"
|
2020-09-30 20:47:42 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# skip tests for now, they fail with
|
|
|
|
# ImportError: cannot import name '_ecdsa' from 'fastecdsa'
|
|
|
|
# but the installed package works just fine
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "fastecdsa" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fast elliptic curve digital signatures";
|
|
|
|
homepage = "https://github.com/AntonKueltz/fastecdsa";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|