2018-08-03 06:48:04 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, numpy, scipy, six }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Keras_Preprocessing";
|
2018-08-25 06:46:44 +01:00
|
|
|
version = "1.0.3";
|
2018-08-03 06:48:04 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-25 06:46:44 +01:00
|
|
|
sha256 = "02ba0a3b31ed89c4b0c21d55ba7d87529097d56f394e3850b6d3c9e6c63ce7ae";
|
2018-08-03 06:48:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|