summary refs log blame commit diff
path: root/pkgs/development/python-modules/keras-preprocessing/default.nix
blob: 01a0cf0dfb747a219f58f5c3787b88768a6b9482 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                 


                                
                    


                          
                                                                    

    












                           

     
                                                                                                    

                  





                                                                                           
{ lib, buildPythonPackage, fetchPypi, numpy, six, scipy, pillow, pytest, Keras }:

buildPythonPackage rec {
  pname = "Keras_Preprocessing";
  version = "1.1.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1r98nm4k1svsqjyaqkfk23i31bl1kcfcyp7094yyj3c43phfp3as";
  };

  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;
  };
}