nixpkgs/pkgs/development/python-modules/chainer/default.nix

37 lines
768 B
Nix
Raw Normal View History

{ 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";
2018-07-22 11:06:18 +01:00
version = "4.3.0";
2017-12-28 16:43:19 +00:00
src = fetchPypi {
inherit pname version;
2018-07-22 11:06:18 +01:00
sha256 = "a83044256edb1946c47cb9ae687d195c2aa0deaef46ab85a8ffc4a01f7001683";
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 ];
};
}