1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-05 15:22:36 +03:00
nixpkgs/pkgs/development/python-modules/keras-preprocessing/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
814 B
Nix
Raw Normal View History

2021-11-25 17:22:42 -05:00
{ lib, buildPythonPackage, fetchPypi, numpy, six, scipy, pillow, pytest, keras }:
buildPythonPackage rec {
pname = "Keras_Preprocessing";
version = "1.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "add82567c50c8bc648c14195bf544a5ce7c1f76761536956c3d2978970179ef3";
};
propagatedBuildInputs = [
# required
numpy six
# optional
scipy pillow
];
checkInputs = [
2021-11-25 17:22:42 -05:00
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;
};
}