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

46 lines
1001 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, filelock, protobuf, numpy, pytestCheckHook, mock, typing-extensions
2017-12-28 16:43:19 +00:00
, cupy, cudaSupport ? false
}:
buildPythonPackage rec {
pname = "chainer";
version = "7.7.0";
disabled = !isPy3k; # python2.7 abandoned upstream
2017-12-28 16:43:19 +00:00
# no tests in Pypi tarball
src = fetchFromGitHub {
owner = "chainer";
repo = "chainer";
rev = "v${version}";
sha256 = "0m97k5bv4pcp5rvbczvrr2vxddwzw2h42cm021f5y779jx5ghclh";
2017-12-28 16:43:19 +00:00
};
checkInputs = [
pytestCheckHook
2017-12-28 16:43:19 +00:00
mock
];
propagatedBuildInputs = [
filelock
protobuf
numpy
typing-extensions
2017-12-28 16:43:19 +00:00
] ++ lib.optionals cudaSupport [ cupy ];
pytestFlagsArray = [ "tests/chainer_tests/utils_tests" ];
disabledTests = [
"gpu"
"cupy"
"ideep"
];
2017-12-28 16:43:19 +00:00
meta = with lib; {
2017-12-28 16:43:19 +00:00
description = "A flexible framework of neural networks for deep learning";
homepage = "https://chainer.org/";
2017-12-28 16:43:19 +00:00
license = licenses.mit;
maintainers = with maintainers; [ hyphon81 ];
};
}