summary refs log tree commit diff
path: root/pkgs/development/python-modules/traitlets
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-05-10 07:16:18 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2018-05-10 07:17:37 +0200
commit3390592cfc5d5406f7316a31661e6b0eeb2d352b (patch)
treecca29a6e875fa007e48d0a33b35dce24a5b3c36f /pkgs/development/python-modules/traitlets
parent0fd655f3557b599b55d597ff01da4c0eb5473e47 (diff)
downloadnixpkgs-3390592cfc5d5406f7316a31661e6b0eeb2d352b.tar
nixpkgs-3390592cfc5d5406f7316a31661e6b0eeb2d352b.tar.gz
nixpkgs-3390592cfc5d5406f7316a31661e6b0eeb2d352b.tar.bz2
nixpkgs-3390592cfc5d5406f7316a31661e6b0eeb2d352b.tar.lz
nixpkgs-3390592cfc5d5406f7316a31661e6b0eeb2d352b.tar.xz
nixpkgs-3390592cfc5d5406f7316a31661e6b0eeb2d352b.tar.zst
nixpkgs-3390592cfc5d5406f7316a31661e6b0eeb2d352b.zip
python.pkgs.traitlets: fix build and don't include .pytest_cache
Fixes build and prevents including `.pytest_cache` file (#40259).
Diffstat (limited to 'pkgs/development/python-modules/traitlets')
-rw-r--r--pkgs/development/python-modules/traitlets/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/traitlets/default.nix b/pkgs/development/python-modules/traitlets/default.nix
index c34bb09b794..8cc1332b473 100644
--- a/pkgs/development/python-modules/traitlets/default.nix
+++ b/pkgs/development/python-modules/traitlets/default.nix
@@ -7,6 +7,8 @@
 , ipython_genutils
 , decorator
 , enum34
+, pythonOlder
+, six
 }:
 
 buildPythonPackage rec {
@@ -20,12 +22,14 @@ buildPythonPackage rec {
   };
 
   checkInputs = [ glibcLocales pytest mock ];
-  propagatedBuildInputs = [ ipython_genutils decorator enum34 ];
+  propagatedBuildInputs = [ ipython_genutils decorator six ] ++ lib.optional (pythonOlder "3.4") enum34;
 
   checkPhase = ''
-    LC_ALL="en_US.UTF-8" py.test $out
+    LC_ALL="en_US.UTF-8" py.test
   '';
 
+#   doCheck = false;
+
   meta = {
     description = "Traitlets Python config system";
     homepage = http://ipython.org/;