Merge pull request #147418 from veprbl/pr/keras_2_7_0

python3Packages.keras: 2.4.3 -> 2.7.0
This commit is contained in:
Dmitry Kalinkin 2021-12-10 10:27:38 -05:00 committed by GitHub
commit 492358cd34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 42 additions and 19 deletions

View File

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, pythonAtLeast
, Keras, numpy, scipy, six, tensorflow }:
, keras, numpy, scipy, six, tensorflow }:
buildPythonPackage rec {
pname = "edward";
@ -15,7 +15,7 @@ buildPythonPackage rec {
# disabled for now due to Tensorflow trying to create files in $HOME:
doCheck = false;
propagatedBuildInputs = [ Keras numpy scipy six tensorflow ];
propagatedBuildInputs = [ keras numpy scipy six tensorflow ];
meta = with lib; {
description = "Probabilistic programming language using Tensorflow";

View File

@ -10,6 +10,7 @@
, pytorch
, mxnet
, tensorflow
, keras
}:
buildPythonPackage rec {
@ -35,6 +36,7 @@ buildPythonPackage rec {
pytorch
mxnet
tensorflow
keras
];
# No CUDA in sandbox

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, numpy, six, scipy, pillow, pytest, Keras }:
{ lib, buildPythonPackage, fetchPypi, numpy, six, scipy, pillow, pytest, keras }:
buildPythonPackage rec {
pname = "Keras_Preprocessing";
@ -17,7 +17,7 @@ buildPythonPackage rec {
];
checkInputs = [
pytest Keras
pytest keras
];
checkPhase = ''

View File

@ -5,12 +5,13 @@
}:
buildPythonPackage rec {
pname = "Keras";
version = "2.4.3";
pname = "keras";
version = "2.7.0";
format = "wheel";
src = fetchPypi {
inherit pname version;
sha256 = "fedd729b52572fb108a98e3d97e1bac10a81d3917d2103cc20ab2a5f03beb973";
inherit format pname version;
sha256 = "0c33ae1f728064ca0d35dfba999e9c316f03623bf5688c82fb83cc74a80ea248";
};
checkInputs = [

View File

@ -1,10 +1,11 @@
{ buildPythonPackage
, cython
, fetchFromGitHub
, fetchpatch
, h5py
, imgaug
, ipython
, Keras
, keras
, lib
, matplotlib
, numpy
@ -26,13 +27,29 @@ buildPythonPackage rec {
sha256 = "13s3q9yh2q9m9vyksd269mww3bni4q2w7q5l419q70ca075qp8zp";
};
patches = [
# Fix for TF2:
# https://github.com/matterport/Mask_RCNN/issues/2734
(fetchpatch {
url = "https://github.com/BupyeongHealer/Mask_RCNN_tf_2.x/commit/7957839fe2b248f2f22c7e991ead12068ddc6cfc.diff";
excludes = [ "mrcnn/model.py" ];
sha256 = "sha256-70BGrx6X1uJDA2025f0YTlreT2uB3n35yIzuhf+ypVc=";
})
];
# Fix for recent Keras
postPatch = ''
substituteInPlace mrcnn/model.py \
--replace "KE." "KL."
'';
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [
h5py
imgaug
ipython
Keras
keras
matplotlib
numpy
opencv3

View File

@ -9,7 +9,7 @@
, xgboost
, mpi4py
, lightgbm
, Keras
, keras
, mxnet
, scikit-optimize
, tensorflow
@ -49,7 +49,7 @@ buildPythonPackage rec {
xgboost
mpi4py
lightgbm
Keras
keras
mxnet
scikit-optimize
tensorflow

View File

@ -4,7 +4,7 @@
, buildPythonPackage, pythonOlder, python
# Python libraries
, numpy, tensorflow-tensorboard, absl-py
, setuptools, wheel, Keras, keras-preprocessing, google-pasta
, setuptools, wheel, keras, keras-preprocessing, google-pasta
, opt-einsum, astunparse, h5py
, termcolor, grpcio, six, wrapt, protobuf, tensorflow-estimator
, dill, flatbuffers-python, tblib, typing-extensions
@ -479,7 +479,7 @@ in buildPythonPackage {
# Actual tests are slow and impure.
# TODO try to run them anyway
# TODO better test (files in tensorflow/tools/ci_build/builds/*test)
checkInputs = [ Keras ];
checkInputs = [ keras ];
checkPhase = ''
${python.interpreter} <<EOF
# A simple "Hello world"

View File

@ -8,19 +8,20 @@
, numba
, pynndescent
, tensorflow
, tqdm
, pytestCheckHook
, Keras
, keras
}:
buildPythonPackage rec {
pname = "umap-learn";
version = "0.5.1";
version = "0.5.2";
src = fetchFromGitHub {
owner = "lmcinnes";
repo = "umap";
rev = version;
sha256 = "0favphngcz5jvyqs06x07hk552lvl9qx3vka8r4x0xmv88gsg349";
sha256 = "sha256-JfYuuE1BP+HdiEl7l01sZ/XXlEwHyAsLjK9nqhRd/3o=";
};
propagatedBuildInputs = [
@ -29,13 +30,14 @@ buildPythonPackage rec {
scipy
numba
pynndescent
tqdm
];
checkInputs = [
nose
tensorflow
pytestCheckHook
Keras
keras
];
preCheck = ''

View File

@ -59,6 +59,7 @@ mapAliases ({
hbmqtt = throw "hbmqtt was removed because it is no longer maintained"; # added 2021-11-07
IMAPClient = imapclient; # added 2021-10-28
jupyter_client = jupyter-client; # added 2021-10-15
Keras = keras; # added 2021-11-25
lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04
MechanicalSoup = mechanicalsoup; # added 2021-06-01
pam = python-pam; # added 2020-09-07.

View File

@ -4219,7 +4219,7 @@ in {
keras-applications = callPackage ../development/python-modules/keras-applications { };
Keras = callPackage ../development/python-modules/keras { };
keras = callPackage ../development/python-modules/keras { };
keras-preprocessing = callPackage ../development/python-modules/keras-preprocessing { };