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