@@ -1,7 +1,6 @@
1−{ stdenv, buildPythonPackage, fetchPypi, isPy3k, isPy33,
2− unittest2, mock, pytest, trollius, asyncio,
3− pytest-asyncio, futures, cffi,
4− six, twisted, txaio, zope_interface
1+{ lib, buildPythonPackage, fetchPypi, isPy3k, isPy33,
2+ six, txaio, twisted, zope_interface, cffi, asyncio, trollius, futures,
3+ mock, pytest
54}:
65buildPythonPackage rec {
76 pname = "autobahn";
@@ -12,21 +11,18 @@ buildPythonPackage rec {
1211 sha256 = "b69858e0be4bff8437b0bd82a0db1cbef7405e16bd9354ba587c043d6d5e1ad9";
1312 };
1413
15− # Upstream claim python2 support, but tests require pytest-asyncio which
16− # is pythn3 only. Therefore, tests are skipped for python2.
17− doCheck = isPy3k;
18− checkInputs = stdenv.lib.optionals isPy3k [ unittest2 mock pytest pytest-asyncio ];
19− propagatedBuildInputs = [ cffi six twisted zope_interface txaio ] ++
20− (stdenv.lib.optional isPy33 asyncio) ++
21− (stdenv.lib.optionals (!isPy3k) [ trollius futures ]);
14+ propagatedBuildInputs = [ six txaio twisted zope_interface cffi ] ++
15+ (lib.optional isPy33 asyncio) ++
16+ (lib.optionals (!isPy3k) [ trollius futures ]);
2217
18+ checkInputs = [ mock pytest ];
2319 checkPhase = ''
2420 runHook preCheck
2521 USE_TWISTED=true py.test $out
2622 runHook postCheck
2723 '';
2824
29− meta = with stdenv.lib; {
25+ meta = with lib; {
3026 description = "WebSocket and WAMP in Python for Twisted and asyncio.";
3127 homepage = "https://crossbar.io/autobahn";
3228 license = licenses.mit;