2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
2021-02-05 17:12:51 +00:00
|
|
|
, filelock, protobuf, numpy, pytestCheckHook, mock, typing-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
, cupy, cudaSupport ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chainer";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "7.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k; # python2.7 abandoned upstream
|
|
|
|
|
|
|
|
# no tests in Pypi tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chainer";
|
|
|
|
repo = "chainer";
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "1zfj3pk54gzxd4nid0qjx4kw1wdngwscvn4hk4cijxvwqi4a5zxj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
filelock
|
|
|
|
protobuf
|
|
|
|
numpy
|
|
|
|
typing-extensions
|
|
|
|
] ++ lib.optionals cudaSupport [ cupy ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
pytestFlagsArray = [ "tests/chainer_tests/utils_tests" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"gpu"
|
|
|
|
"cupy"
|
|
|
|
"ideep"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A flexible framework of neural networks for deep learning";
|
|
|
|
homepage = "https://chainer.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hyphon81 ];
|
|
|
|
};
|
|
|
|
}
|