nixpkgs/pkgs/development/python-modules/keras-preprocessing/default.nix
2018-08-03 07:48:04 +02:00

28 lines
742 B
Nix

{ lib, buildPythonPackage, fetchPypi, numpy, scipy, six }:
buildPythonPackage rec {
pname = "Keras_Preprocessing";
version = "1.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "f5306554d2b454d825b36f35e327744f5477bd2ae21017f1a93b2097bed6757e";
};
# Cyclic dependency: keras-preprocessing requires keras, which requires keras-preprocessing
postPatch = ''
sed -i "s/keras>=[^']*//" setup.py
'';
# No tests in PyPI tarball
doCheck = false;
propagatedBuildInputs = [ numpy scipy six ];
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;
};
}