add option to build without Tensorflow
This commit is contained in:
parent
f11cd8165d
commit
78e557806e
@ -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 New Issue
Block a user