2017-12-28 16:43:19 +00:00
|
|
|
{ stdenv, lib, python
|
|
|
|
, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, filelock, protobuf, numpy, pytest, mock
|
|
|
|
, cupy, cudaSupport ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chainer";
|
2018-04-04 19:03:15 +01:00
|
|
|
version = "3.5.0";
|
2017-12-28 16:43:19 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 19:03:15 +01:00
|
|
|
sha256 = "d72c1f5ff5f4743b141900d5e50aeb8337a213e553a28012dad4a4d2335bbabb";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|