depot/third_party/nixpkgs/pkgs/development/python-modules/tf-keras/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

55 lines
903 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
pythonRelaxDepsHook,
setuptools,
wheel,
numpy,
tensorflow,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "tf-keras";
version = "2.16.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "tf_keras";
inherit version;
hash = "sha256-21OJHxrJgZfCrM7ZjNyowGuoJVZVpst+uV7UlnYRgoA=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"tensorflow"
];
build-system = [
setuptools
wheel
];
dependencies = [
numpy
tensorflow
];
pythonImportsCheck = [ "tf_keras" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Deep learning for humans";
homepage = "https://pypi.org/project/tf-keras/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}