2019-01-30 05:05:26 -08:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, numpy, six, scipy, pillow, pytest, Keras }:
|
2018-08-02 22:48:04 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Keras_Preprocessing";
|
2020-06-05 10:44:35 -07:00
|
|
|
version = "1.1.2";
|
2018-08-02 22:48:04 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 10:44:35 -07:00
|
|
|
sha256 = "add82567c50c8bc648c14195bf544a5ce7c1f76761536956c3d2978970179ef3";
|
2018-08-02 22:48:04 -07:00
|
|
|
};
|
|
|
|
|
2019-01-30 05:05:26 -08:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# required
|
|
|
|
numpy six
|
|
|
|
# optional
|
|
|
|
scipy pillow
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest Keras
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests/
|
2018-08-02 22:48:04 -07:00
|
|
|
'';
|
|
|
|
|
2019-01-30 05:05:26 -08:00
|
|
|
# Cyclic dependency: keras-preprocessing's tests require Keras, which requires keras-preprocessing
|
2018-08-02 22:48:04 -07:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Easy data preprocessing and data augmentation for deep learning models";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/keras-team/keras-preprocessing";
|
2018-08-02 22:48:04 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|