blob: 2b5d280562084168b29e5b1894688915cbfb601d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
eth-hash,
eth-typing,
eth-utils,
hypothesis,
parsimonious,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "eth-abi";
version = "4.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-abi";
rev = "v${version}";
hash = "sha256-CGAfu3Ovz2WPJOD+4W2+cOAz+wYvuIyFL333Jw66ozA=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "parsimonious>=0.9.0,<0.10.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 = [ ];
};
}
|