depot/third_party/nixpkgs/pkgs/development/python-modules/gin-config/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

41 lines
839 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
tensorflow,
torch,
}:
buildPythonPackage rec {
pname = "gin-config";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-DG6lAm3tknyMk8mQsBxpUlfB30RuReVJoVjPvHnhntY=";
};
build-system = [ setuptools ];
optional-dependencies = {
tensorflow = [ tensorflow ];
torch = [ torch ];
};
# PyPI archive does not ship with tests
doCheck = false;
pythonImportsCheck = [ "gin" ];
meta = with lib; {
description = "Gin provides a lightweight configuration framework for Python, based on dependency injection";
homepage = "https://github.com/google/gin-config";
license = licenses.asl20;
maintainers = with maintainers; [ jethro ];
};
}