2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest, pytest-cov, pytest-xdist
|
2020-04-24 23:36:52 +00:00
|
|
|
, six, numpy, scipy, pyyaml, h5py
|
|
|
|
, keras-applications, keras-preprocessing
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-19 01:06:50 +00:00
|
|
|
pname = "keras";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "2.11.0";
|
2021-12-19 01:06:50 +00:00
|
|
|
format = "wheel";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-12-19 01:06:50 +00:00
|
|
|
inherit format pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-OMb/8OqaiwaicXc2VlySpzyM2bHCOecSXMsYi3hI9l4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-cov
|
|
|
|
pytest-xdist
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six pyyaml numpy scipy h5py
|
|
|
|
keras-applications keras-preprocessing
|
|
|
|
];
|
|
|
|
|
|
|
|
# Couldn't get tests working
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Deep Learning library for Theano and TensorFlow";
|
|
|
|
homepage = "https://keras.io";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ NikolaMandic ];
|
|
|
|
};
|
|
|
|
}
|