1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "starkbank-ecdsa"; 11 version = "2.2.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "starkbank"; 18 repo = "ecdsa-python"; 19 tag = "v${version}"; 20 hash = "sha256-HarlCDE2qOLbyhMLOE++bTC+7srJqwmohM6vrJkJ/gc="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 preCheck = '' 26 cd tests 27 ''; 28 29 enabledTestPaths = [ 30 "*.py" 31 ]; 32 33 pytestFlags = [ 34 "-v" 35 ]; 36 37 pythonImportsCheck = [ "ellipticcurve" ]; 38 39 meta = with lib; { 40 description = "Python ECDSA library"; 41 homepage = "https://github.com/starkbank/ecdsa-python"; 42 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}