From 78e557806e7bdd905a77c896d31a3365182b26c8 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Thu, 8 Nov 2018 22:06:13 +0800 Subject: [PATCH] add option to build without Tensorflow --- pkgs/development/python-modules/gin-config/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/gin-config/default.nix b/pkgs/development/python-modules/gin-config/default.nix index 9203a6cf33ad..d1852a1392af 100644 --- a/pkgs/development/python-modules/gin-config/default.nix +++ b/pkgs/development/python-modules/gin-config/default.nix @@ -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; {