2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, lib
|
2017-12-28 16:43:19 +00:00
|
|
|
, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, filelock, protobuf, numpy, pytest, mock
|
|
|
|
, cupy, cudaSupport ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chainer";
|
2019-02-14 07:37:12 +00:00
|
|
|
version = "5.2.0";
|
2017-12-28 16:43:19 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:12 +00:00
|
|
|
sha256 = "cc8390a7f445a14a1bc71d54de348be247158fe2813a5ef11c5046265001c8c4";
|
2017-12-28 16:43:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
filelock
|
|
|
|
protobuf
|
|
|
|
numpy
|
|
|
|
] ++ lib.optionals cudaSupport [ cupy ];
|
|
|
|
|
|
|
|
# In python3, test was failed...
|
|
|
|
doCheck = !isPy3k;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A flexible framework of neural networks for deep learning";
|
|
|
|
homepage = https://chainer.org/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hyphon81 ];
|
|
|
|
};
|
|
|
|
}
|