From 2553369795fe1f563a95fd21e499a00fc62a5031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 3 Aug 2018 07:48:04 +0200 Subject: [PATCH] python.pkgs.keras-preprocessing: init at 1.0.2 --- .../keras-preprocessing/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/keras-preprocessing/default.nix diff --git a/pkgs/development/python-modules/keras-preprocessing/default.nix b/pkgs/development/python-modules/keras-preprocessing/default.nix new file mode 100644 index 000000000000..043e43eb1843 --- /dev/null +++ b/pkgs/development/python-modules/keras-preprocessing/default.nix @@ -0,0 +1,27 @@ +{ 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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 28cb0509e97d..9d7a392c0685 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17082,6 +17082,8 @@ EOF Keras = callPackage ../development/python-modules/keras { }; + keras-preprocessing = callPackage ../development/python-modules/keras-preprocessing { }; + Lasagne = buildPythonPackage rec { name = "Lasagne-${version}"; version = "0.1";