2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
absl-py,
|
|
|
|
dm-tree,
|
|
|
|
h5py,
|
|
|
|
markdown-it-py,
|
|
|
|
ml-dtypes,
|
|
|
|
namex,
|
|
|
|
numpy,
|
|
|
|
optree,
|
|
|
|
rich,
|
|
|
|
tensorflow,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-19 01:06:50 +00:00
|
|
|
pname = "keras";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.3.3";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "keras-team";
|
|
|
|
repo = "keras";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-hhY28Ocv4zacZiwFflJtufKpeKfH1MD1PZJ+NTJfpH0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
absl-py
|
|
|
|
dm-tree
|
|
|
|
h5py
|
|
|
|
markdown-it-py
|
|
|
|
ml-dtypes
|
|
|
|
namex
|
|
|
|
numpy
|
|
|
|
optree
|
|
|
|
rich
|
|
|
|
tensorflow
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"keras"
|
|
|
|
"keras._tf_keras"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Couldn't get tests working
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = {
|
|
|
|
description = "Multi-backend implementation of the Keras API, with support for TensorFlow, JAX, and PyTorch";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://keras.io";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ NikolaMandic ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|