1 { lib, buildPythonPackage, fetchPypi, isPy3k,
2 six, txaio, twisted, zope_interface, cffi, trollius, futures,
3 mock, pytest, cryptography, pynacl
5 buildPythonPackage rec {
10 inherit pname version;
11 sha256 = "15b8zm7jalwisfwc08szxy3bh2bnn0hd41dbsnswi0lqwbh962j1";
14 propagatedBuildInputs = [ six txaio twisted zope_interface cffi cryptography pynacl ] ++
15 (lib.optionals (!isPy3k) [ trollius futures ]);
17 checkInputs = [ mock pytest ];
20 USE_TWISTED=true py.test $out
24 # Tests do no seem to be compatible yet with pytest 5.1
25 # https://github.com/crossbario/autobahn-python/issues/1235
29 description = "WebSocket and WAMP in Python for Twisted and asyncio.";
30 homepage = "https://crossbar.io/autobahn";
31 license = licenses.mit;
32 maintainers = with maintainers; [ nand0p ];