mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
python39Packages.web3.py: init at 5.30.0
This commit is contained in:
parent
5524cbd127
commit
3d2ae0fbb4
@ -80,6 +80,8 @@ buildPythonPackage rec {
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "ipfshttpclient" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
83
pkgs/development/python-modules/web3/default.nix
Normal file
83
pkgs/development/python-modules/web3/default.nix
Normal file
@ -0,0 +1,83 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, aiohttp
|
||||
, eth-abi
|
||||
, eth-account
|
||||
, eth-hash
|
||||
, eth-typing
|
||||
, eth-utils
|
||||
, eth-rlp
|
||||
, hexbytes
|
||||
, ipfshttpclient
|
||||
, jsonschema
|
||||
, lru-dict
|
||||
, protobuf
|
||||
, requests
|
||||
, typing-extensions
|
||||
, websockets
|
||||
# , eth-tester
|
||||
# , py-geth
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "web3";
|
||||
version = "5.30.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ethereum";
|
||||
repo = "web3.py";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-HajumvOG18r7TslkmCfI0iiLsEddevGrRZQFWICGeYE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "eth-account>=0.5.7,<0.6.0" "eth-account>=0.5.7,<0.7" \
|
||||
--replace "eth-utils>=1.9.5,<2.0.0" "eth-utils>=1.9.5,<3" \
|
||||
--replace "eth-rlp<0.3" "eth-rlp<0.4" \
|
||||
--replace "websockets>=9.1,<10" "websockets>=9.1,<11" \
|
||||
--replace "eth-abi>=2.0.0b6,<3.0.0" "eth-abi>=2.0.0b6,<4" \
|
||||
--replace "eth-typing>=2.0.0,<3.0.0" "eth-typing>=2.0.0,<4"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
eth-abi
|
||||
eth-account
|
||||
eth-hash
|
||||
eth-hash.optional-dependencies.pycryptodome
|
||||
eth-rlp
|
||||
eth-typing
|
||||
eth-utils
|
||||
hexbytes
|
||||
ipfshttpclient
|
||||
jsonschema
|
||||
lru-dict
|
||||
protobuf
|
||||
requests
|
||||
websockets
|
||||
] ++ lib.optional (pythonOlder "3.8") [ typing-extensions ];
|
||||
|
||||
# TODO: package eth-tester
|
||||
#checkInputs = [
|
||||
# eth-tester
|
||||
# eth-tester.optional-dependencies.py-evm
|
||||
# py-geth
|
||||
# pytestCheckHook
|
||||
#];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "web3" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Web3 library for interactions";
|
||||
homepage = "https://github.com/ethereum/web3";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ raitobezarius ];
|
||||
};
|
||||
}
|
@ -11351,6 +11351,8 @@ in {
|
||||
|
||||
weasyprint = callPackage ../development/python-modules/weasyprint { };
|
||||
|
||||
web3 = callPackage ../development/python-modules/web3 { };
|
||||
|
||||
webargs = callPackage ../development/python-modules/webargs { };
|
||||
|
||||
webassets = callPackage ../development/python-modules/webassets { };
|
||||
|
Loading…
Reference in New Issue
Block a user