2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, argon2_cffi
|
|
|
|
, attrs
|
|
|
|
, buildPythonPackage
|
|
|
|
, cbor
|
|
|
|
, cbor2
|
|
|
|
, cffi
|
|
|
|
, cryptography
|
|
|
|
, fetchPypi
|
|
|
|
, flatbuffers
|
|
|
|
, mock
|
|
|
|
, msgpack
|
|
|
|
, passlib
|
|
|
|
, pynacl
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, twisted
|
|
|
|
, py-ubjson
|
|
|
|
, txaio
|
|
|
|
, ujson
|
|
|
|
, zope_interface
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "autobahn";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "21.3.1";
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "00wf9dkfgakg80gy62prg650lb8zz9y9fdlxwxcznwp8hgsw29p1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
argon2_cffi
|
|
|
|
cbor
|
|
|
|
cbor2
|
|
|
|
cffi
|
|
|
|
cryptography
|
|
|
|
flatbuffers
|
|
|
|
msgpack
|
|
|
|
passlib
|
|
|
|
py-ubjson
|
|
|
|
pynacl
|
|
|
|
twisted
|
|
|
|
txaio
|
|
|
|
ujson
|
|
|
|
zope_interface
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pytest>=2.8.6,<3.3.0" "pytest"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
preCheck = ''
|
|
|
|
# Run asyncio tests (requires twisted)
|
|
|
|
export USE_ASYNCIO=1
|
|
|
|
'';
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "--pyargs autobahn" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "autobahn" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "WebSocket and WAMP in Python for Twisted and asyncio";
|
|
|
|
homepage = "https://crossbar.io/autobahn";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|