2018-11-03 09:24:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, enum34
|
|
|
|
, absl-py
|
|
|
|
, tensorflow
|
2018-11-08 14:06:13 +00:00
|
|
|
, withTensorflow ? true
|
2018-11-03 09:24:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gin-config";
|
|
|
|
version = "0.1.1.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1zqzhg8nqdqjx0sjrsrs9bpyiaqqlyihqhhy2ijrpp62x9rjllga";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2018-11-08 14:06:13 +00:00
|
|
|
propogatedBuildInputs = [ six enum34 ] + lib.optional withTensorflow tensorflow;
|
2018-11-03 09:24:30 +00:00
|
|
|
checkInputs = [ absl-py tensorflow ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/google/gin-config;
|
|
|
|
description = "Gin provides a lightweight configuration framework for Python, based on dependency injection.";
|
|
|
|
license = licenses.asl20;
|
2018-11-03 11:06:16 +00:00
|
|
|
maintainers = with maintainers; [ jethro ];
|
2018-11-03 09:24:30 +00:00
|
|
|
};
|
|
|
|
}
|