3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/fastecdsa/default.nix
2021-08-15 07:24:14 +00:00

41 lines
977 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, gmp
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "fastecdsa";
version = "2.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "48d59fcd18d0892a6b76463d4c98caa217975414f6d853af7cfcbbb0284cb52d";
};
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 ];
};
}