2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-10-23 06:41:50 +00:00
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
tensorflow,
|
|
|
|
torch,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gin-config";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.5.0";
|
2024-10-23 06:41:50 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-10-23 06:41:50 +00:00
|
|
|
hash = "sha256-DG6lAm3tknyMk8mQsBxpUlfB30RuReVJoVjPvHnhntY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
optional-dependencies = {
|
|
|
|
tensorflow = [ tensorflow ];
|
|
|
|
torch = [ torch ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# PyPI archive does not ship with tests
|
2024-06-05 15:53:02 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
pythonImportsCheck = [ "gin" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Gin provides a lightweight configuration framework for Python, based on dependency injection";
|
2024-10-23 06:41:50 +00:00
|
|
|
homepage = "https://github.com/google/gin-config";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jethro ];
|
|
|
|
};
|
|
|
|
}
|