summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2018-08-31 13:11:24 -0400
committerBen Wolsieffer <benwolsieffer@gmail.com>2018-10-11 18:15:16 -0400
commit1c3f7302faa5da6e42f5a1c471b934124106d71a (patch)
tree71916dc004b0dbe50ac0d0711398b4f4dd04cdba
parent820feccb18ba0948b7d077bccb13b2912b168873 (diff)
downloadnixlib-1c3f7302faa5da6e42f5a1c471b934124106d71a.tar
nixlib-1c3f7302faa5da6e42f5a1c471b934124106d71a.tar.gz
nixlib-1c3f7302faa5da6e42f5a1c471b934124106d71a.tar.bz2
nixlib-1c3f7302faa5da6e42f5a1c471b934124106d71a.tar.lz
nixlib-1c3f7302faa5da6e42f5a1c471b934124106d71a.tar.xz
nixlib-1c3f7302faa5da6e42f5a1c471b934124106d71a.tar.zst
nixlib-1c3f7302faa5da6e42f5a1c471b934124106d71a.zip
pythonPackages.autobahn: use checkInputs
-rw-r--r--pkgs/development/python-modules/autobahn/default.nix20
1 files changed, 8 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/autobahn/default.nix b/pkgs/development/python-modules/autobahn/default.nix
index 04aa9411247e..f618b05373a7 100644
--- a/pkgs/development/python-modules/autobahn/default.nix
+++ b/pkgs/development/python-modules/autobahn/default.nix
@@ -1,7 +1,6 @@
-{ stdenv, buildPythonPackage, fetchPypi, isPy3k, isPy33,
-  unittest2, mock, pytest, trollius, asyncio,
-  pytest-asyncio, futures, cffi,
-  six, twisted, txaio, zope_interface
+{ lib, buildPythonPackage, fetchPypi, isPy3k, isPy33,
+  six, txaio, twisted, zope_interface, cffi, asyncio, trollius, futures,
+  mock, pytest
 }:
 buildPythonPackage rec {
   pname = "autobahn";
@@ -12,21 +11,18 @@ buildPythonPackage rec {
     sha256 = "b69858e0be4bff8437b0bd82a0db1cbef7405e16bd9354ba587c043d6d5e1ad9";
   };
 
-  # Upstream claim python2 support, but tests require pytest-asyncio which
-  # is pythn3 only. Therefore, tests are skipped for python2.
-  doCheck = isPy3k;
-  checkInputs = stdenv.lib.optionals isPy3k [ unittest2 mock pytest pytest-asyncio ];
-  propagatedBuildInputs = [ cffi six twisted zope_interface txaio ] ++
-    (stdenv.lib.optional isPy33 asyncio) ++
-    (stdenv.lib.optionals (!isPy3k) [ trollius futures ]);
+  propagatedBuildInputs = [ six txaio twisted zope_interface cffi ] ++
+    (lib.optional isPy33 asyncio) ++
+    (lib.optionals (!isPy3k) [ trollius futures ]);
 
+  checkInputs = [ mock pytest ];
   checkPhase = ''
     runHook preCheck
     USE_TWISTED=true py.test $out
     runHook postCheck
   '';
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "WebSocket and WAMP in Python for Twisted and asyncio.";
     homepage    = "https://crossbar.io/autobahn";
     license     = licenses.mit;