2020-11-12 23:50:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, gmp
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fastecdsa";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "2.2.1";
|
2020-11-12 23:50:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "48d59fcd18d0892a6b76463d4c98caa217975414f6d853af7cfcbbb0284cb52d";
|
2020-11-12 23:50:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gmp ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
# skip tests which require being online to download test vectors
|
|
|
|
pytestFlags = [
|
|
|
|
"--ignore=fastecdsa/tests/test_wycheproof_vectors.py"
|
|
|
|
"--ignore=fastecdsa/tests/test_rfc6979_ecdsa.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|