1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 eth-abi, 6 py-ecc, 7 pycryptodome, 8 python, 9 rlp, 10}: 11 12buildPythonPackage rec { 13 pname = "py-eth-sig-utils"; 14 version = "0.4.0"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "rmeissner"; 19 repo = "py-eth-sig-utils"; 20 rev = "v${version}"; 21 hash = "sha256-PNvEHH5w2ptntRGzqWrqlbIzJJsT60OXg/Dh5f6Wq9k="; 22 }; 23 24 propagatedBuildInputs = [ 25 eth-abi 26 py-ecc 27 pycryptodome 28 rlp 29 ]; 30 31 # lots of: isinstance() arg 2 must be a type or tuple of types 32 doCheck = false; 33 34 checkPhase = '' 35 ${python.interpreter} -m unittest 36 ''; 37 38 pythonImportsCheck = [ "py_eth_sig_utils" ]; 39 40 meta = with lib; { 41 description = "Collection of functions to generate hashes for signing on Ethereum"; 42 homepage = "https://github.com/rmeissner/py-eth-sig-utils"; 43 license = licenses.mit; 44 maintainers = [ ]; 45 # TODO: upstream is stale and doesn't not work with the new `eth-abi` package any more. 46 broken = true; 47 }; 48}