1{ lib, buildPythonPackage, fetchPypi, numpy, h5py }:
2
3buildPythonPackage rec {
4 pname = "Keras_Applications";
5 version = "1.0.5";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "26a7318b9d8d5be80d75ab08a1284aaf4b94125dd8271b18ca89791e16eb2cfc";
10 };
11
12 # Cyclic dependency: keras-applications requires keras, which requires keras-applications
13 postPatch = ''
14 sed -i "s/keras>=[^']*//" setup.py
15 '';
16
17 # No tests in PyPI tarball
18 doCheck = false;
19
20 propagatedBuildInputs = [ numpy h5py ];
21
22 meta = with lib; {
23 description = "Reference implementations of popular deep learning models";
24 homepage = https://github.com/keras-team/keras-applications;
25 license = licenses.mit;
26 };
27}