2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
bitarray,
|
|
|
|
eth-abi,
|
|
|
|
eth-keyfile,
|
|
|
|
eth-keys,
|
|
|
|
eth-rlp,
|
|
|
|
eth-utils,
|
|
|
|
websockets,
|
|
|
|
hexbytes,
|
|
|
|
pythonOlder,
|
|
|
|
rlp,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "eth-account";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.9.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ethereum";
|
|
|
|
repo = "eth-account";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-Ps/vzJv0W1+wy1mSJaqRNNU6CoCMchReHIocB9kPrGs=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bitarray
|
|
|
|
eth-abi
|
|
|
|
eth-keyfile
|
|
|
|
eth-keys
|
|
|
|
eth-rlp
|
|
|
|
eth-utils
|
|
|
|
hexbytes
|
|
|
|
rlp
|
2023-07-15 17:15:38 +00:00
|
|
|
websockets
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
}
|