python310Packages.eth-account: init at 0.6.1

This commit is contained in:
Sandro Jäckel 2022-06-04 03:58:22 +02:00
parent 07a12b703f
commit 8d1e34700b
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, bitarray
, eth-abi
, eth-keyfile
, eth-keys
, eth-rlp
, eth-utils
, hexbytes
, pythonOlder
, rlp
}:
buildPythonPackage rec {
pname = "eth-account";
version = "0.6.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ethereum";
repo = "eth-account";
rev = "v${version}";
sha256 = "sha256-cjQvTKC4lDbKnAvbmnTGHQiJZsZFhXc/+UH5rUdlGxs=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "bitarray>=1.2.1,<1.3.0" "bitarray>=2.4.0,<3"
'';
propagatedBuildInputs = [
bitarray
eth-abi
eth-keyfile
eth-keys
eth-rlp
eth-utils
hexbytes
rlp
];
# require buildinga npm project
doCheck = false;
pythonImportsCheck = [ "eth_account" ];
meta = with lib; {
description = "Account abstraction library for web3.py";
homepage = "https://github.com/ethereum/eth-account";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -2805,6 +2805,8 @@ in {
eth-abi = callPackage ../development/python-modules/eth-abi { };
eth-account = callPackage ../development/python-modules/eth-account { };
eth-hash = callPackage ../development/python-modules/eth-hash { };
eth-typing = callPackage ../development/python-modules/eth-typing { };