2018-08-03 10:34:32 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, numpy, h5py }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Keras_Applications";
|
2018-08-25 06:46:37 +01:00
|
|
|
version = "1.0.5";
|
2018-08-03 10:34:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-25 06:46:37 +01:00
|
|
|
sha256 = "26a7318b9d8d5be80d75ab08a1284aaf4b94125dd8271b18ca89791e16eb2cfc";
|
2018-08-03 10:34:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|