Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 74 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib, buildPythonPackage, config, cudaSupport ? config.cudaSupport or false, cupy, fetchFromGitHub, filelock, mock, numpy, protobuf, pytestCheckHook, pythonOlder, six, typing-extensions}:
buildPythonPackage rec { pname = "chainer"; version = "7.8.1.post1"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "chainer"; repo = "chainer"; rev = "refs/tags/v${version}"; hash = "sha256-epwnExmyCWmwaOz+mJnAl1peEeHLBdQGC62BlLfSTQQ="; };
propagatedBuildInputs = [ filelock numpy protobuf six typing-extensions ] ++ lib.optionals cudaSupport [ cupy ];
nativeCheckInputs = [ mock pytestCheckHook ];
pytestFlagsArray = [ "tests/chainer_tests/utils_tests" ];
preCheck = '' # cf. https://github.com/chainer/chainer/issues/8621 export CHAINER_WARN_VERSION_MISMATCH=0
# ignore pytest warnings not listed rm setup.cfg '';
disabledTests = [ "gpu" "cupy" "ideep" ];
pythonImportsCheck = [ "chainer" ];
meta = with lib; { description = "A flexible framework of neural networks for deep learning"; homepage = "https://chainer.org/"; license = licenses.mit; maintainers = with maintainers; [ hyphon81 ]; };}