1{ lib
2, buildPythonPackage
3, fetchPypi
4, gmp
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "fastecdsa";
10 version = "2.1.5";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "d0772f7fe243e8a82d33e95c542ea6cc0ef7f3cfcced7440d6defa71a35addfa";
15 };
16
17 buildInputs = [ gmp ];
18
19 checkInputs = [ pytestCheckHook ];
20
21 # skip tests which require being online to download test vectors
22 pytestFlags = [
23 "--ignore=fastecdsa/tests/test_wycheproof_vectors.py"
24 "--ignore=fastecdsa/tests/test_rfc6979_ecdsa.py"
25 ];
26
27 # skip tests for now, they fail with
28 # ImportError: cannot import name '_ecdsa' from 'fastecdsa'
29 # but the installed package works just fine
30 doCheck = false;
31
32 pythonImportsCheck = [ "fastecdsa" ];
33
34 meta = with lib; {
35 description = "Fast elliptic curve digital signatures";
36 homepage = "https://github.com/AntonKueltz/fastecdsa";
37 license = licenses.unlicense;
38 maintainers = with maintainers; [ prusnak ];
39 };
40}