-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312985 from GaetanLepage/keras
python311Packages.keras: 3.2.1 -> 3.3.3
- Loading branch information
Showing
6 changed files
with
100 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,64 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
pytest, | ||
pytest-cov, | ||
pytest-xdist, | ||
six, | ||
numpy, | ||
scipy, | ||
pyyaml, | ||
pythonOlder, | ||
fetchFromGitHub, | ||
setuptools, | ||
absl-py, | ||
dm-tree, | ||
h5py, | ||
markdown-it-py, | ||
ml-dtypes, | ||
namex, | ||
numpy, | ||
optree, | ||
keras-applications, | ||
keras-preprocessing, | ||
rich, | ||
tensorflow, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "keras"; | ||
version = "3.2.1"; | ||
format = "wheel"; | ||
|
||
src = fetchPypi { | ||
inherit format pname version; | ||
hash = "sha256-C+HomwQeaXvlYthCLsuVjuVIGs/AiZEyAJJsVh0ligM="; | ||
python = "py3"; | ||
dist = "py3"; | ||
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="; | ||
}; | ||
|
||
nativeCheckInputs = [ | ||
pytest | ||
pytest-cov | ||
pytest-xdist | ||
build-system = [ | ||
setuptools | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
six | ||
pyyaml | ||
numpy | ||
scipy | ||
dependencies = [ | ||
absl-py | ||
dm-tree | ||
h5py | ||
keras-applications | ||
keras-preprocessing | ||
markdown-it-py | ||
ml-dtypes | ||
namex | ||
numpy | ||
optree | ||
rich | ||
tensorflow | ||
]; | ||
|
||
pythonImportsCheck = [ | ||
"keras" | ||
"keras._tf_keras" | ||
]; | ||
|
||
# Couldn't get tests working | ||
doCheck = false; | ||
|
||
meta = with lib; { | ||
description = "Deep Learning library for Theano and TensorFlow"; | ||
meta = { | ||
description = "Multi-backend implementation of the Keras API, with support for TensorFlow, JAX, and PyTorch"; | ||
homepage = "https://keras.io"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ NikolaMandic ]; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ NikolaMandic ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
setuptools, | ||
wheel, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "namex"; | ||
version = "0.0.8"; | ||
pyproject = true; | ||
|
||
# Not using fetchFromGitHub because the repo does not have any tag/release. | ||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-MqUPbFZcC7EKp2KYyVlQer3A6FDv4IXcOPNED8s6qQs="; | ||
}; | ||
|
||
build-system = [ | ||
setuptools | ||
wheel | ||
]; | ||
|
||
pythonImportsCheck = [ "namex" ]; | ||
|
||
# This packages has no tests. | ||
doCheck = false; | ||
|
||
meta = { | ||
description = "A simple utility to separate the implementation of your Python package and its public API surface"; | ||
homepage = "https://github.com/fchollet/namex"; | ||
license = lib.licenses.asl20; | ||
maintainers = with lib.maintainers; [ GaetanLepage ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters