Merge pull request #100867 from risicle/ris-theano-imports-check

python3Packages.Theano: add pythonImportsCheck
gstqt5
Martin Weinelt 2020-10-18 01:43:18 +02:00 committed by GitHub
commit 23175e4045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -68,7 +68,9 @@ in buildPythonPackage rec {
--replace 'StrParam(default_dnn_base_path)' 'StrParam('\'''${cudnn}'\''')'
'';
preCheck = ''
# needs to be postFixup so it runs before pythonImportsCheck even when
# doCheck = false (meaning preCheck would be disabled)
postFixup = ''
mkdir -p check-phase
export HOME=$(pwd)/check-phase
'';
@ -81,6 +83,8 @@ in buildPythonPackage rec {
checkInputs = [ nose ];
propagatedBuildInputs = [ numpy numpy.blas scipy six libgpuarray_ ];
pythonImportsCheck = [ "theano" ];
meta = with stdenv.lib; {
homepage = "http://deeplearning.net/software/theano/";
description = "A Python library for large-scale array computation";