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