about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2016-08-01 21:13:49 +0200
committerLancelot SIX <lsix@lancelotsix.com>2016-08-01 21:30:58 +0200
commit853209dde916dbb30650e6b7682fd25089fd494c (patch)
treef996bbbb38e3edb5791122f539bf99b5d5322308
parent5c7708e56806246bedf595f9202c67d9a2fc6beb (diff)
downloadnixlib-853209dde916dbb30650e6b7682fd25089fd494c.tar
nixlib-853209dde916dbb30650e6b7682fd25089fd494c.tar.gz
nixlib-853209dde916dbb30650e6b7682fd25089fd494c.tar.bz2
nixlib-853209dde916dbb30650e6b7682fd25089fd494c.tar.lz
nixlib-853209dde916dbb30650e6b7682fd25089fd494c.tar.xz
nixlib-853209dde916dbb30650e6b7682fd25089fd494c.tar.zst
nixlib-853209dde916dbb30650e6b7682fd25089fd494c.zip
pythonPackages.kombu: Enable for python > 2.7
Only tests cannot run on python3* because dependencies are unavailable
(qpid-python). Kombu is announced to work fine for python3[1]

[1] https://github.com/celery/kombu/blob/a4edc670f49027154e3f708dfcd3726aceda8fc5/setup.py#L168-L170
-rw-r--r--pkgs/top-level/python-packages.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 06c94b727b5e..18088e8b87dc 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -12137,13 +12137,13 @@ in modules // {
     };
 
     # most of these are simply to allow the test suite to do its job
-    buildInputs = with self; [ mock unittest2 nose redis qpid-python pymongo sqlalchemy pyyaml msgpack boto ];
+    buildInputs = with self; optionals isPy27 [ mock unittest2 nose redis qpid-python pymongo sqlalchemy pyyaml msgpack boto ];
 
     propagatedBuildInputs = with self; [ amqp anyjson ] ++
       (optionals (pythonOlder "2.7") [ importlib ordereddict ]);
 
     # tests broken on python 2.6? https://github.com/nose-devs/nose/issues/806
-    doCheck = (pythonAtLeast "2.7");
+    doCheck = isPy27;
 
     meta = {
       description = "Messaging library for Python";