mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
python3Packages.Theano: add pythonImportsCheck
this not only gives us a "hint" of test coverage, but also proves the fix from #97597 allows import of theano from within a sandboxed build
This commit is contained in:
parent
a60ed8e2db
commit
4a9dba6c44
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user