diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-08-03 11:34:32 +0200 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-08-03 11:36:42 +0200 |
commit | 148f0746ab7f1481db5307e8bbad85f282c26b61 (patch) | |
tree | 421ccd83b6dc8141f9744889f7fe177ce10a6281 /pkgs/development | |
parent | 2553369795fe1f563a95fd21e499a00fc62a5031 (diff) | |
download | nixlib-148f0746ab7f1481db5307e8bbad85f282c26b61.tar nixlib-148f0746ab7f1481db5307e8bbad85f282c26b61.tar.gz nixlib-148f0746ab7f1481db5307e8bbad85f282c26b61.tar.bz2 nixlib-148f0746ab7f1481db5307e8bbad85f282c26b61.tar.lz nixlib-148f0746ab7f1481db5307e8bbad85f282c26b61.tar.xz nixlib-148f0746ab7f1481db5307e8bbad85f282c26b61.tar.zst nixlib-148f0746ab7f1481db5307e8bbad85f282c26b61.zip |
python.pkgs.keras-applications: init at 1.0.4
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/keras-applications/default.nix | 27 |
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 000000000000..e06a0b75b504 --- /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; + }; +} |