python311Packages.web3: fix darwin builds
- Python ipfshttpclient is an optional dependency of this package, and python ipfshttpclient package is currently broken on darwin. - use passthru.optional-dependencies. - Update description and homepage. - Leave typing-extensions to upstream package conditonal logic. Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
This commit is contained in:
parent
8709579b02
commit
aa35823657
|
@ -1,22 +1,20 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, aiohttp
|
||||
, eth-abi
|
||||
, eth-account
|
||||
, eth-hash
|
||||
, eth-typing
|
||||
, eth-utils
|
||||
, eth-rlp
|
||||
, hexbytes
|
||||
, ipfshttpclient
|
||||
, jsonschema
|
||||
, lru-dict
|
||||
, protobuf
|
||||
, requests
|
||||
, typing-extensions
|
||||
, websockets
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -33,24 +31,25 @@ buildPythonPackage rec {
|
|||
hash = "sha256-RNWCZQjcse415SSNkHhMWckDcBJGFZnjisckF7gbYY8=";
|
||||
};
|
||||
|
||||
# Note: to reflect the extra_requires in main/setup.py.
|
||||
passthru.optional-dependencies = {
|
||||
ipfs = [ ipfshttpclient ];
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
eth-abi
|
||||
eth-account
|
||||
eth-hash
|
||||
eth-rlp
|
||||
eth-hash ] ++ eth-hash.optional-dependencies.pycryptodome ++ [
|
||||
eth-typing
|
||||
eth-utils
|
||||
hexbytes
|
||||
ipfshttpclient
|
||||
jsonschema
|
||||
lru-dict
|
||||
protobuf
|
||||
requests
|
||||
websockets
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
typing-extensions
|
||||
] ++ eth-hash.optional-dependencies.pycryptodome;
|
||||
];
|
||||
|
||||
# TODO: package eth-tester required for tests
|
||||
doCheck = false;
|
||||
|
@ -64,8 +63,8 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Web3 library for interactions";
|
||||
homepage = "https://github.com/ethereum/web3";
|
||||
description = "A python interface for interacting with the Ethereum blockchain and ecosystem";
|
||||
homepage = "https://web3py.readthedocs.io/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hellwolf ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue