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";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.9.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;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-VZESVvic/JNDyfvkth7EWi0z2Jcpy+GrncrPiwe4tqs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|