Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 eth-hash, 7 eth-utils, 8 hexbytes, 9 pytestCheckHook, 10 pythonOlder, 11 rlp, 12}: 13 14buildPythonPackage rec { 15 pname = "eth-rlp"; 16 version = "2.1.0"; 17 pyproject = true; 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "ethereum"; 22 repo = "eth-rlp"; 23 rev = "v${version}"; 24 hash = "sha256-FTqIutndf+epmO5XNEUoRAUEmn299aTLIZNe5SMcxAQ="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 propagatedBuildInputs = [ 30 hexbytes 31 eth-utils 32 rlp 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ] ++ eth-hash.optional-dependencies.pycryptodome; 36 37 pythonImportsCheck = [ "eth_rlp" ]; 38 39 meta = with lib; { 40 description = "RLP definitions for common Ethereum objects"; 41 homepage = "https://github.com/ethereum/eth-rlp"; 42 license = licenses.mit; 43 maintainers = [ ]; 44 }; 45}