python310Packages.eth-account: init at 0.6.1
This commit is contained in:
parent
07a12b703f
commit
8d1e34700b
2 changed files with 56 additions and 0 deletions
54
pkgs/development/python-modules/eth-account/default.nix
Normal file
54
pkgs/development/python-modules/eth-account/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue