1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, eth-hash 5, eth-utils 6, hexbytes 7, pytestCheckHook 8, pythonOlder 9, rlp 10}: 11 12buildPythonPackage rec { 13 pname = "eth-rlp"; 14 version = "0.3.0"; 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "ethereum"; 19 repo = "eth-rlp"; 20 rev = "v${version}"; 21 hash = "sha256-wfmRjHFu6H3J6hNin8ZA2454xXrLgcUdeR8iGXFomRE="; 22 }; 23 24 propagatedBuildInputs = [ 25 hexbytes 26 eth-utils 27 rlp 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 ] ++ eth-hash.optional-dependencies.pycryptodome; 33 34 pythonImportsCheck = [ "eth_rlp" ]; 35 36 meta = with lib; { 37 description = "RLP definitions for common Ethereum objects"; 38 homepage = "https://github.com/ethereum/eth-rlp"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ ]; 41 }; 42}