2021-12-19 01:06:50 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, numpy, six, scipy, pillow, pytest, keras }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Keras_Preprocessing";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "1.1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "add82567c50c8bc648c14195bf544a5ce7c1f76761536956c3d2978970179ef3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
# required
|
|
|
|
numpy six
|
|
|
|
# optional
|
|
|
|
scipy pillow
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-19 01:06:50 +00:00
|
|
|
pytest keras
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests/
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Cyclic dependency: keras-preprocessing's tests require Keras, which requires keras-preprocessing
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|