nixpkgs-suyu/pkgs/development/python-modules/chainer/default.nix
2018-02-03 17:43:29 +01:00

36 lines
776 B
Nix

{ stdenv, lib, python
, buildPythonPackage, fetchPypi, isPy3k
, filelock, protobuf, numpy, pytest, mock
, cupy, cudaSupport ? false
}:
buildPythonPackage rec {
pname = "chainer";
version = "3.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "0669375e5b09d687781a37d6c025ee0a6015f575b4d2c70a2ad09c33b8228f86";
};
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 ];
};
}