mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
ea35c76455
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-keras_applications/versions
28 lines
702 B
Nix
28 lines
702 B
Nix
{ lib, buildPythonPackage, fetchPypi, numpy, h5py }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Keras_Applications";
|
|
version = "1.0.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1yk9brcvr96s1slpgj9vr6np7fk8limcrw9v2pjq72c6k0mpnq30";
|
|
};
|
|
|
|
# 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;
|
|
};
|
|
}
|