{ lib , buildPythonPackage , fetchFromGitHub , pytestCheckHook }: buildPythonPackage rec { pname = "starkbank-ecdsa"; version = "2.1.0"; format = "setuptools"; src = fetchFromGitHub { owner = "starkbank"; repo = "ecdsa-python"; rev = "v${version}"; sha256 = "sha256-N7TV4o7u4YRymFrRNtSPbjobEu+X2QtnkPHcnZW3zTY="; }; checkInputs = [ pytestCheckHook ]; preCheck = '' cd tests ''; pytestFlagsArray = [ "-v" "*.py" ]; pythonImportsCheck = [ "ellipticcurve" ]; meta = with lib; { description = "Python ECDSA library"; homepage = "https://github.com/starkbank/ecdsa-python"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }