5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
51 lines
901 B
Nix
51 lines
901 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, bitarray
|
|
, eth-abi
|
|
, eth-keyfile
|
|
, eth-keys
|
|
, eth-rlp
|
|
, eth-utils
|
|
, websockets
|
|
, hexbytes
|
|
, pythonOlder
|
|
, rlp
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "eth-account";
|
|
version = "0.9.0";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ethereum";
|
|
repo = "eth-account";
|
|
rev = "v${version}";
|
|
hash = "sha256-Ps/vzJv0W1+wy1mSJaqRNNU6CoCMchReHIocB9kPrGs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bitarray
|
|
eth-abi
|
|
eth-keyfile
|
|
eth-keys
|
|
eth-rlp
|
|
eth-utils
|
|
hexbytes
|
|
rlp
|
|
websockets
|
|
];
|
|
|
|
# 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; [ ];
|
|
};
|
|
}
|