Merge pull request #44390 from dotlambda/keras-2.2.2
python.pkgs.Keras: 2.2.0 -> 2.2.2
This commit is contained in:
commit
e271c47fcb
4 changed files with 62 additions and 2 deletions
|
@ -0,0 +1,27 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, numpy, h5py }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Keras_Applications";
|
||||
version = "1.0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8c95300328630ae74fb0828b6fa38269a25c0228a02f1e5181753bfd48961f49";
|
||||
};
|
||||
|
||||
# Cyclic dependency: keras-applications requires keras, which requires keras-applications
|
||||
postPatch = ''
|
||||
sed -i "s/keras>=[^']*//" setup.py
|
||||
'';
|
||||
|
||||
# No tests in PyPI tarball
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ numpy h5py ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Reference implementations of popular deep learning models";
|
||||
homepage = https://github.com/keras-team/keras-applications;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, numpy, scipy, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Keras_Preprocessing";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f5306554d2b454d825b36f35e327744f5477bd2ae21017f1a93b2097bed6757e";
|
||||
};
|
||||
|
||||
# Cyclic dependency: keras-preprocessing requires keras, which requires keras-preprocessing
|
||||
postPatch = ''
|
||||
sed -i "s/keras>=[^']*//" setup.py
|
||||
'';
|
||||
|
||||
# No tests in PyPI tarball
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy six ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Easy data preprocessing and data augmentation for deep learning models";
|
||||
homepage = https://github.com/keras-team/keras-preprocessing;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
|
@ -1,15 +1,16 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pytest, pytestcov, pytestpep8, pytest_xdist
|
||||
, six, numpy, scipy, pyyaml, h5py
|
||||
, keras-applications, keras-preprocessing
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Keras";
|
||||
version = "2.2.0";
|
||||
version = "2.2.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5b8499d157af217f1a5ee33589e774127ebc3e266c833c22cb5afbb0ed1734bf";
|
||||
sha256 = "468d98da104ec5c3dbb10c2ef6bb345ab154f6ca2d722d4c250ef4d6105de17a";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
@ -21,6 +22,7 @@ buildPythonPackage rec {
|
|||
|
||||
propagatedBuildInputs = [
|
||||
six pyyaml numpy scipy h5py
|
||||
keras-applications keras-preprocessing
|
||||
];
|
||||
|
||||
# Couldn't get tests working
|
||||
|
|
|
@ -16945,6 +16945,10 @@ EOF
|
|||
|
||||
Keras = callPackage ../development/python-modules/keras { };
|
||||
|
||||
keras-applications = callPackage ../development/python-modules/keras-applications { };
|
||||
|
||||
keras-preprocessing = callPackage ../development/python-modules/keras-preprocessing { };
|
||||
|
||||
Lasagne = buildPythonPackage rec {
|
||||
name = "Lasagne-${version}";
|
||||
version = "0.1";
|
||||
|
|
Loading…
Reference in a new issue