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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.0.5";
|
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;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-SgIvLpfqWj2xLtgJ/8t84e+NNP6urFIxXshVPe0tz5c=";
|
2023-11-16 04:20:00 +00:00
|
|
|
python = "py3";
|
|
|
|
dist = "py3";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|