Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / eth-abi / default.nix
blob8e45e945218fd2fd6853c387aa16e3abda2e0565
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , eth-hash
5 , eth-typing
6 , eth-utils
7 , hypothesis
8 , parsimonious
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "eth-abi";
15   version = "4.1.0";
16   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "ethereum";
21     repo = "eth-abi";
22     rev = "v${version}";
23     hash = "sha256-CGAfu3Ovz2WPJOD+4W2+cOAz+wYvuIyFL333Jw66ozA=";
24   };
26   postPatch = ''
27     substituteInPlace setup.py \
28       --replace "parsimonious>=0.9.0,<0.10.0" "parsimonious"
29   '';
31   propagatedBuildInputs = [
32     eth-typing
33     eth-utils
34     parsimonious
35   ];
37   # lots of: TypeError: isinstance() arg 2 must be a type or tuple of types
38   doCheck = false;
40   nativeCheckInputs = [
41     hypothesis
42     pytestCheckHook
43   ] ++ eth-hash.optional-dependencies.pycryptodome;
45   disabledTests = [
46     # boolean list representation changed
47     "test_get_abi_strategy_returns_certain_strategies_for_known_type_strings"
48     # hypothesis.errors.Flaky
49     "test_base_equals_has_expected_behavior_for_parsable_types"
50     "test_has_arrlist_has_expected_behavior_for_parsable_types"
51     "test_is_base_tuple_has_expected_behavior_for_parsable_types"
52   ];
54   pythonImportsCheck = [ "eth_abi" ];
56   meta = with lib; {
57     description = "Ethereum ABI utilities";
58     homepage = "https://github.com/ethereum/eth-abi";
59     license = licenses.mit;
60     maintainers = with maintainers; [ ];
61   };