python310Packages.autobahn: adopt, populate passthru.extras-require

main
Sandro Jäckel 2 years ago committed by Sandro Jäckel
parent 293f3d8ec5
commit 03ebf37be7
No known key found for this signature in database
GPG Key ID: B1763F8651144063
  1. 64
      pkgs/development/python-modules/autobahn/default.nix

@ -1,25 +1,49 @@
{ lib { lib
, argon2_cffi
, buildPythonPackage , buildPythonPackage
, cbor , fetchPypi
, attrs
, argon2-cffi
, base58
, cbor2 , cbor2
, cffi , cffi
, click
, cryptography , cryptography
, fetchPypi , ecdsa
# , eth-abi
, flatbuffers , flatbuffers
, jinja2
, hkdf
, hyperlink
, mnemonic
, mock , mock
, msgpack , msgpack
, passlib , passlib
# , py-ecc
# , py-eth-sig-utils
, py-multihash
, py-ubjson
, pynacl , pynacl
, pygobject3
, pyopenssl
, pyqrcode
, pytest-asyncio , pytest-asyncio
, python-snappy
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
# , pytrie
, rlp
, service-identity
, spake2
, twisted , twisted
, py-ubjson
, txaio , txaio
, ujson , ujson
# , web3
# , wsaccel
# , xbr
, yapf
# , zlmdb
, zope_interface , zope_interface
}: }@args:
buildPythonPackage rec { buildPythonPackage rec {
pname = "autobahn"; pname = "autobahn";
@ -34,27 +58,18 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
argon2_cffi
cbor
cbor2
cffi
cryptography cryptography
flatbuffers hyperlink
msgpack
passlib
py-ubjson
pynacl pynacl
twisted
txaio txaio
ujson
zope_interface
]; ];
checkInputs = [ checkInputs = [
mock mock
pytest-asyncio pytest-asyncio
pytestCheckHook pytestCheckHook
]; ] ++ passthru.extras-require.scram
++ passthru.extras-require.serialization;
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
@ -74,10 +89,23 @@ buildPythonPackage rec {
"autobahn" "autobahn"
]; ];
passthru.extras-require = rec {
all = accelerate ++ compress ++ encryption ++ nvx ++ serialization ++ scram ++ twisted ++ ui ++ xbr;
accelerate = [ /* wsaccel */ ];
compress = [ python-snappy ];
encryption = [ pynacl pyopenssl pyqrcode /* pytrie */ service-identity ];
nvx = [ cffi ];
scram = [ argon2-cffi cffi passlib ];
serialization = [ cbor2 flatbuffers msgpack ujson py-ubjson ];
twisted = [ attrs args.twisted zope_interface ];
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 */ ];
};
meta = with lib; { meta = with lib; {
description = "WebSocket and WAMP in Python for Twisted and asyncio"; description = "WebSocket and WAMP in Python for Twisted and asyncio";
homepage = "https://crossbar.io/autobahn"; homepage = "https://crossbar.io/autobahn";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ SuperSandro2000 ];
}; };
} }

Loading…
Cancel
Save