pythonPackages.chainer: init at 3.2.0

This commit is contained in:
hyphon81 2017-12-28 17:43:19 +01:00 committed by Jan Tojnar
parent 0184f60c1c
commit 7ccceeacca
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ stdenv, lib, python
, buildPythonPackage, fetchPypi, isPy3k
, filelock, protobuf, numpy, pytest, mock
, cupy, cudaSupport ? false
}:
buildPythonPackage rec {
pname = "chainer";
version = "3.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "0mbc8kwk7pvg03bf0j57a48gr6rsdg4lzmyj0dak8y2l4lmyskpw";
};
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 ];
};
}

View File

@ -1467,6 +1467,9 @@ in {
substituteInPlace setup.py --replace "argparse" ""
'';
chainer = callPackage ../development/python-modules/chainer {
cudaSupport = pkgs.config.cudaSupport or false;
};
channels = callPackage ../development/python-modules/channels {};