Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 61 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ lib, buildPythonPackage, fetchFromGitHub, eth-hash, eth-typing, eth-utils, hypothesis, parsimonious, pytestCheckHook, pythonOlder}:
buildPythonPackage rec { pname = "eth-abi"; version = "3.0.1"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "ethereum"; repo = "eth-abi"; rev = "v${version}"; hash = "sha256-xrZpT/9zwDtjSwSPDDse+Aq8plPm26OR/cIrliZUpLY="; };
postPatch = '' substituteInPlace setup.py \ --replace "parsimonious>=0.8.0,<0.9.0" "parsimonious" '';
propagatedBuildInputs = [ eth-typing eth-utils parsimonious ];
# lots of: TypeError: isinstance() arg 2 must be a type or tuple of types doCheck = false;
nativeCheckInputs = [ hypothesis pytestCheckHook ] ++ eth-hash.optional-dependencies.pycryptodome;
disabledTests = [ # boolean list representation changed "test_get_abi_strategy_returns_certain_strategies_for_known_type_strings" # hypothesis.errors.Flaky "test_base_equals_has_expected_behavior_for_parsable_types" "test_has_arrlist_has_expected_behavior_for_parsable_types" "test_is_base_tuple_has_expected_behavior_for_parsable_types" ];
pythonImportsCheck = [ "eth_abi" ];
meta = with lib; { description = "Ethereum ABI utilities"; homepage = "https://github.com/ethereum/eth-abi"; license = licenses.mit; maintainers = with maintainers; [ SuperSandro2000 ]; };}