2021-04-17 21:14:41 +01: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
|
2017-04-26 13:30:04 +01:00
|
|
|
}:
|
2021-04-17 21:14:41 +01:00
|
|
|
|
2017-04-26 13:30:04 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "autobahn";
|
2021-03-24 09:28:09 +00:00
|
|
|
version = "21.3.1";
|
2021-04-17 21:14:41 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
2017-04-26 13:30:04 +01:00
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-17 21:14:41 +01:00
|
|
|
sha256 = "00wf9dkfgakg80gy62prg650lb8zz9y9fdlxwxcznwp8hgsw29p1";
|
2017-04-26 13:30:04 +01:00
|
|
|
};
|
|
|
|
|
2021-04-17 21:14:41 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
argon2_cffi
|
|
|
|
cbor
|
|
|
|
cbor2
|
|
|
|
cffi
|
|
|
|
cryptography
|
|
|
|
flatbuffers
|
|
|
|
msgpack
|
|
|
|
passlib
|
|
|
|
py-ubjson
|
|
|
|
pynacl
|
|
|
|
twisted
|
|
|
|
txaio
|
|
|
|
ujson
|
|
|
|
zope_interface
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-04-26 13:30:04 +01:00
|
|
|
|
2021-04-17 21:14:41 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pytest>=2.8.6,<3.3.0" "pytest"
|
2017-04-26 13:30:04 +01:00
|
|
|
'';
|
|
|
|
|
2021-04-17 21:14:41 +01:00
|
|
|
preCheck = ''
|
|
|
|
# Run asyncio tests (requires twisted)
|
|
|
|
export USE_ASYNCIO=1
|
|
|
|
'';
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "--pyargs autobahn" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "autobahn" ];
|
2019-08-18 09:08:15 +01:00
|
|
|
|
2018-08-31 18:11:24 +01:00
|
|
|
meta = with lib; {
|
2021-04-17 21:14:41 +01:00
|
|
|
description = "WebSocket and WAMP in Python for Twisted and asyncio";
|
|
|
|
homepage = "https://crossbar.io/autobahn";
|
|
|
|
license = licenses.mit;
|
2021-05-14 15:00:41 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-04-26 13:30:04 +01:00
|
|
|
};
|
|
|
|
}
|