1{ lib 2, buildPythonPackage 3, fetchPypi 4, gmp 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "fastecdsa"; 10 version = "2.2.3"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "269bdb0f618b38f8f6aec9d23d23db518046c3cee01a954fa6aa7322a1a7db8f"; 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}