mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
38 lines
814 B
Nix
38 lines
814 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, pytest, pytest-cov, pytest-xdist
|
|
, six, numpy, scipy, pyyaml, h5py
|
|
, keras-applications, keras-preprocessing
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keras";
|
|
version = "2.11.0";
|
|
format = "wheel";
|
|
|
|
src = fetchPypi {
|
|
inherit format pname version;
|
|
sha256 = "sha256-OMb/8OqaiwaicXc2VlySpzyM2bHCOecSXMsYi3hI9l4=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest
|
|
pytest-cov
|
|
pytest-xdist
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
six pyyaml numpy scipy h5py
|
|
keras-applications keras-preprocessing
|
|
];
|
|
|
|
# Couldn't get tests working
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Deep Learning library for Theano and TensorFlow";
|
|
homepage = "https://keras.io";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ NikolaMandic ];
|
|
};
|
|
}
|