python310Packages.autobahn: 22.4.2 -> 22.5.1
This commit is contained in:
parent
a5985571ca
commit
5f04e65972
@ -1,6 +1,5 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchpatch
|
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, attrs
|
, attrs
|
||||||
, argon2-cffi
|
, argon2-cffi
|
||||||
@ -10,7 +9,8 @@
|
|||||||
, click
|
, click
|
||||||
, cryptography
|
, cryptography
|
||||||
, ecdsa
|
, ecdsa
|
||||||
# , eth-abi
|
, eth-abi
|
||||||
|
, eth-account
|
||||||
, flatbuffers
|
, flatbuffers
|
||||||
, jinja2
|
, jinja2
|
||||||
, hkdf
|
, hkdf
|
||||||
@ -19,14 +19,14 @@
|
|||||||
, mock
|
, mock
|
||||||
, msgpack
|
, msgpack
|
||||||
, passlib
|
, passlib
|
||||||
# , py-ecc
|
, py-ecc
|
||||||
# , py-eth-sig-utils
|
, py-eth-sig-utils
|
||||||
, py-multihash
|
, py-multihash
|
||||||
, py-ubjson
|
, py-ubjson
|
||||||
, pynacl
|
, pynacl
|
||||||
, pygobject3
|
, pygobject3
|
||||||
, pyopenssl
|
, pyopenssl
|
||||||
, pyqrcode
|
, qrcode
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, python-snappy
|
, python-snappy
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
@ -48,27 +48,20 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "autobahn";
|
pname = "autobahn";
|
||||||
version = "22.4.2";
|
version = "22.5.1";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-V7es8ijVDYPPMnNyuInioWioaSdbJuF5F+0LTPTYI6Y=";
|
sha256 = "sha256-NKpVabC0QZ+MJ3eSxgDcJRjEkwkox04iee+LiNi4o+o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
postPatch = ''
|
||||||
# fix txaio compatibility
|
substituteInPlace setup.py \
|
||||||
(fetchpatch {
|
--replace "pytest>=2.8.6,<3.3.0" "pytest"
|
||||||
url = "https://github.com/crossbario/autobahn-python/commit/2e2ee5f9775ed312db699f5c55fc0488311735a5.patch";
|
'';
|
||||||
excludes = [
|
|
||||||
"setup.py"
|
|
||||||
"tox.ini"
|
|
||||||
];
|
|
||||||
sha256 = "sha256-LQSusXZwDpxyQl4tphZovaYceg/JVG0SyoA9FUQlVWU=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cryptography
|
cryptography
|
||||||
@ -81,13 +74,11 @@ buildPythonPackage rec {
|
|||||||
mock
|
mock
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
|
# FIXME: remove the following dependencies when web3 gets added
|
||||||
|
eth-account
|
||||||
] ++ passthru.optional-dependencies.scram
|
] ++ passthru.optional-dependencies.scram
|
||||||
++ passthru.optional-dependencies.serialization;
|
++ passthru.optional-dependencies.serialization
|
||||||
|
++ passthru.optional-dependencies.xbr;
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "pytest>=2.8.6,<3.3.0" "pytest"
|
|
||||||
'';
|
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# Run asyncio tests (requires twisted)
|
# Run asyncio tests (requires twisted)
|
||||||
@ -106,13 +97,13 @@ buildPythonPackage rec {
|
|||||||
all = accelerate ++ compress ++ encryption ++ nvx ++ serialization ++ scram ++ twisted ++ ui ++ xbr;
|
all = accelerate ++ compress ++ encryption ++ nvx ++ serialization ++ scram ++ twisted ++ ui ++ xbr;
|
||||||
accelerate = [ /* wsaccel */ ];
|
accelerate = [ /* wsaccel */ ];
|
||||||
compress = [ python-snappy ];
|
compress = [ python-snappy ];
|
||||||
encryption = [ pynacl pyopenssl pyqrcode /* pytrie */ service-identity ];
|
encryption = [ pynacl pyopenssl qrcode /* pytrie */ service-identity ];
|
||||||
nvx = [ cffi ];
|
nvx = [ cffi ];
|
||||||
scram = [ argon2-cffi cffi passlib ];
|
scram = [ argon2-cffi cffi passlib ];
|
||||||
serialization = [ cbor2 flatbuffers msgpack ujson py-ubjson ];
|
serialization = [ cbor2 flatbuffers msgpack ujson py-ubjson ];
|
||||||
twisted = [ attrs args.twisted zope_interface ];
|
twisted = [ attrs args.twisted zope_interface ];
|
||||||
ui = [ pygobject3 ];
|
ui = [ pygobject3 ];
|
||||||
xbr = [ base58 cbor2 click ecdsa /* eth-abi */ jinja2 hkdf mnemonic /* py-ecc py-eth-sig-utils */ py-multihash rlp spake2 twisted /* web3 xbr */ yapf /* zlmdb */ ];
|
xbr = [ base58 cbor2 click ecdsa eth-abi jinja2 hkdf mnemonic py-ecc py-eth-sig-utils py-multihash rlp spake2 twisted /* web3 xbr */ yapf /* zlmdb */ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user