Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 # dependencies 7 eth-typing, 8 eth-utils, 9 parsimonious, 10 # nativeCheckInputs 11 hypothesis, 12 pytestCheckHook, 13 pytest-xdist, 14 eth-hash, 15}: 16 17buildPythonPackage rec { 18 pname = "eth-abi"; 19 version = "5.1.0"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "ethereum"; 24 repo = "eth-abi"; 25 tag = "v${version}"; 26 hash = "sha256-D3aGMx2oZFttwQ90ouwQbbRelCb2bvyQgvamKweX9Nw="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 eth-typing 33 eth-utils 34 parsimonious 35 ]; 36 37 nativeCheckInputs = [ 38 hypothesis 39 pytestCheckHook 40 pytest-xdist 41 ] 42 ++ eth-hash.optional-dependencies.pycryptodome; 43 44 disabledTests = [ 45 # boolean list representation changed 46 "test_get_abi_strategy_returns_certain_strategies_for_known_type_strings" 47 ]; 48 49 pythonImportsCheck = [ "eth_abi" ]; 50 51 meta = { 52 description = "Ethereum ABI utilities"; 53 homepage = "https://github.com/ethereum/eth-abi"; 54 changelog = "https://github.com/ethereum/eth-abi/blob/v${version}/docs/release_notes.rst"; 55 license = lib.licenses.mit; 56 maintainers = with lib.maintainers; [ hellwolf ]; 57 }; 58}