2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, argon2_cffi
|
|
|
|
, 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";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "22.3.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
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;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-WKiHx6GWuwjYtmJMs2lfSTqeXJ8A/TUNjW+Cm0f/kDY=";
|
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
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"--pyargs autobahn"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|