about summary refs log tree commit diff
path: root/pkgs/development/python-modules/Theano
diff options
context:
space:
mode:
authorTyson Whitehead <twhitehead@gmail.com>2017-05-30 16:08:48 -0400
committerTyson Whitehead <twhitehead@gmail.com>2017-06-01 17:59:20 -0400
commit46793d98876080f0e3738b07490aece6468b0cd0 (patch)
treed769247d05acf2d9a412e48ce6d95e167f47049b /pkgs/development/python-modules/Theano
parent20730dc2805bdc030938518b90050f033ec580cd (diff)
downloadnixlib-46793d98876080f0e3738b07490aece6468b0cd0.tar
nixlib-46793d98876080f0e3738b07490aece6468b0cd0.tar.gz
nixlib-46793d98876080f0e3738b07490aece6468b0cd0.tar.bz2
nixlib-46793d98876080f0e3738b07490aece6468b0cd0.tar.lz
nixlib-46793d98876080f0e3738b07490aece6468b0cd0.tar.xz
nixlib-46793d98876080f0e3738b07490aece6468b0cd0.tar.zst
nixlib-46793d98876080f0e3738b07490aece6468b0cd0.zip
TheanoWithCuda: depend on future for older pythons #26103
Diffstat (limited to 'pkgs/development/python-modules/Theano')
-rw-r--r--pkgs/development/python-modules/Theano/theano-with-cuda/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/Theano/theano-with-cuda/default.nix b/pkgs/development/python-modules/Theano/theano-with-cuda/default.nix
index f65733557cb3..f8b7a713d08e 100644
--- a/pkgs/development/python-modules/Theano/theano-with-cuda/default.nix
+++ b/pkgs/development/python-modules/Theano/theano-with-cuda/default.nix
@@ -1,5 +1,7 @@
 { buildPythonPackage
 , fetchFromGitHub
+, pythonOlder
+, future
 , numpy
 , six
 , scipy
@@ -57,7 +59,7 @@ buildPythonPackage rec {
     cudatoolkit
     libgpuarray
     cudnn
-  ];
+  ] ++ (stdenv.lib.optional (pythonOlder "3.0") future);
 
   passthru.cudaSupport = true;
 }