mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
add option to build without Tensorflow
This commit is contained in:
parent
f11cd8165d
commit
78e557806e
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
, enum34
|
||||
, absl-py
|
||||
, tensorflow
|
||||
, withTensorflow ? true
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -17,7 +18,7 @@ buildPythonPackage rec {
|
|||
|
||||
};
|
||||
|
||||
buildInputs = [ six enum34 tensorflow ];
|
||||
propogatedBuildInputs = [ six enum34 ] + lib.optional withTensorflow tensorflow;
|
||||
checkInputs = [ absl-py tensorflow ];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue