nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 42 lines 738 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "starkbank-ecdsa"; 9 version = "2.0.2"; 10 format = "setuptools"; 11 12 src = fetchFromGitHub { 13 owner = "starkbank"; 14 repo = "ecdsa-python"; 15 rev = "v${version}"; 16 sha256 = "sha256-4QFAtGqHJZSVyrGPuMdJwvF761/P6YAHjjKmCpPyGdU="; 17 }; 18 19 checkInputs = [ 20 pytestCheckHook 21 ]; 22 23 preCheck = '' 24 cd tests 25 ''; 26 27 pytestFlagsArray = [ 28 "-v" 29 "*.py" 30 ]; 31 32 pythonImportsCheck = [ 33 "ellipticcurve" 34 ]; 35 36 meta = with lib; { 37 description = "Python ECDSA library"; 38 homepage = "https://github.com/starkbank/ecdsa-python"; 39 license = with licenses; [ mit ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}