blob: 96c38f3cd89ddaaa4ef4a3eaa68f75617a169950 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ lib, buildPythonPackage, fetchPypi, numpy, six, scipy, pillow, pytest, Keras }:
buildPythonPackage rec {
pname = "Keras_Preprocessing";
version = "1.0.9";
src = fetchPypi {
inherit pname version;
sha256 = "5e3700117981c2db762e512ed6586638124fac5842170701628088a11aeb51ac";
};
propagatedBuildInputs = [
# required
numpy six
# optional
scipy pillow
];
checkInputs = [
pytest Keras
];
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;
};
}
|