summary refs log tree commit diff
path: root/pkgs/development/python-modules/keras-applications
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-08-03 11:34:32 +0200
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-08-03 11:36:42 +0200
commit148f0746ab7f1481db5307e8bbad85f282c26b61 (patch)
tree421ccd83b6dc8141f9744889f7fe177ce10a6281 /pkgs/development/python-modules/keras-applications
parent2553369795fe1f563a95fd21e499a00fc62a5031 (diff)
downloadnixpkgs-148f0746ab7f1481db5307e8bbad85f282c26b61.tar
nixpkgs-148f0746ab7f1481db5307e8bbad85f282c26b61.tar.gz
nixpkgs-148f0746ab7f1481db5307e8bbad85f282c26b61.tar.bz2
nixpkgs-148f0746ab7f1481db5307e8bbad85f282c26b61.tar.lz
nixpkgs-148f0746ab7f1481db5307e8bbad85f282c26b61.tar.xz
nixpkgs-148f0746ab7f1481db5307e8bbad85f282c26b61.tar.zst
nixpkgs-148f0746ab7f1481db5307e8bbad85f282c26b61.zip
python.pkgs.keras-applications: init at 1.0.4
Diffstat (limited to 'pkgs/development/python-modules/keras-applications')
-rw-r--r--pkgs/development/python-modules/keras-applications/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/keras-applications/default.nix b/pkgs/development/python-modules/keras-applications/default.nix
new file mode 100644
index 00000000000..e06a0b75b50
--- /dev/null
+++ b/pkgs/development/python-modules/keras-applications/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildPythonPackage, fetchPypi, numpy, h5py }:
+
+buildPythonPackage rec {
+  pname = "Keras_Applications";
+  version = "1.0.4";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "8c95300328630ae74fb0828b6fa38269a25c0228a02f1e5181753bfd48961f49";
+  };
+
+  # Cyclic dependency: keras-applications requires keras, which requires keras-applications
+  postPatch = ''
+    sed -i "s/keras>=[^']*//" setup.py
+  '';
+
+  # No tests in PyPI tarball
+  doCheck = false;
+
+  propagatedBuildInputs = [ numpy h5py ];
+
+  meta = with lib; {
+    description = "Reference implementations of popular deep learning models";
+    homepage = https://github.com/keras-team/keras-applications;
+    license = licenses.mit;
+  };
+}