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