2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2021-07-20 23:08:56 +02:00
|
|
|
, pytest, pytest-cov, pytest-xdist
|
2018-05-10 10:13:30 +02:00
|
|
|
, six, numpy, scipy, pyyaml, h5py
|
2018-08-03 11:43:14 +02:00
|
|
|
, keras-applications, keras-preprocessing
|
2017-02-15 12:56:58 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-11-25 17:22:42 -05:00
|
|
|
pname = "keras";
|
2022-09-14 23:36:11 +02:00
|
|
|
version = "2.10.0";
|
2021-11-25 16:43:56 -05:00
|
|
|
format = "wheel";
|
2017-02-15 12:56:58 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-11-25 16:43:56 -05:00
|
|
|
inherit format pname version;
|
2022-09-14 23:36:11 +02:00
|
|
|
sha256 = "sha256-JqbiwlIudGjd6iJxCpmzKQSTdo/AijnnXRFzoONFL98=";
|
2017-02-15 12:56:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
2021-07-20 22:42:24 +02:00
|
|
|
pytest-cov
|
2021-07-20 23:08:56 +02:00
|
|
|
pytest-xdist
|
2017-02-15 12:56:58 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-05-10 10:13:30 +02:00
|
|
|
six pyyaml numpy scipy h5py
|
2018-08-03 11:43:14 +02:00
|
|
|
keras-applications keras-preprocessing
|
2017-02-15 12:56:58 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Couldn't get tests working
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-02-15 12:56:58 +01:00
|
|
|
description = "Deep Learning library for Theano and TensorFlow";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://keras.io";
|
2017-02-15 12:56:58 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ NikolaMandic ];
|
|
|
|
};
|
|
|
|
}
|