python310Packages.eth-abi: init at 3.0.0
This commit is contained in:
parent
f5bedc25b2
commit
2de83832fb
57
pkgs/development/python-modules/eth-abi/default.nix
Normal file
57
pkgs/development/python-modules/eth-abi/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, eth-hash
|
||||
, eth-typing
|
||||
, eth-utils
|
||||
, hypothesis
|
||||
, parsimonious
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "eth-abi";
|
||||
version = "3.0.0";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ethereum";
|
||||
repo = "eth-abi";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-qiuyGVOy+n8l3jSqwMGnBXcDrOxIiJ0lNP4lq/EQEhU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "parsimonious>=0.8.0,<0.9.0" "parsimonious"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
eth-typing
|
||||
eth-utils
|
||||
parsimonious
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
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_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 ];
|
||||
};
|
||||
}
|
|
@ -2803,6 +2803,8 @@ in {
|
|||
|
||||
etesync = callPackage ../development/python-modules/etesync { };
|
||||
|
||||
eth-abi = callPackage ../development/python-modules/eth-abi { };
|
||||
|
||||
eth-hash = callPackage ../development/python-modules/eth-hash { };
|
||||
|
||||
eth-typing = callPackage ../development/python-modules/eth-typing { };
|
||||
|
|
Loading…
Reference in a new issue