472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
68 lines
1.1 KiB
Nix
68 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
absl-py,
|
|
dm-tree,
|
|
h5py,
|
|
markdown-it-py,
|
|
ml-dtypes,
|
|
namex,
|
|
numpy,
|
|
optree,
|
|
packaging,
|
|
rich,
|
|
tensorflow,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keras";
|
|
version = "3.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "keras-team";
|
|
repo = "keras";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-zbeGa4g2psAofYAVuM7BNWI2gI21e739N5ZtxVfnVUg=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
absl-py
|
|
dm-tree
|
|
h5py
|
|
markdown-it-py
|
|
ml-dtypes
|
|
namex
|
|
numpy
|
|
optree
|
|
packaging
|
|
rich
|
|
tensorflow
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"keras"
|
|
"keras._tf_keras"
|
|
];
|
|
|
|
# Couldn't get tests working
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Multi-backend implementation of the Keras API, with support for TensorFlow, JAX, and PyTorch";
|
|
homepage = "https://keras.io";
|
|
changelog = "https://github.com/keras-team/keras/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ NikolaMandic ];
|
|
};
|
|
}
|