diff --git a/pkgs/development/python-modules/chainer/default.nix b/pkgs/development/python-modules/chainer/default.nix deleted file mode 100644 index b31f869244ce..000000000000 --- a/pkgs/development/python-modules/chainer/default.nix +++ /dev/null @@ -1,76 +0,0 @@ -{ - lib, - buildPythonPackage, - config, - cudaSupport ? config.cudaSupport, - cupy, - fetchFromGitHub, - filelock, - mock, - protobuf, - pytestCheckHook, - pythonOlder, - six, - setuptools, - numpy, - typing-extensions, -}: - -buildPythonPackage rec { - pname = "chainer"; - version = "7.8.1.post1"; - build-system = [ setuptools ]; - - disabled = pythonOlder "3.7"; - - src = fetchFromGitHub { - owner = "chainer"; - repo = "chainer"; - tag = "v${version}"; - hash = "sha256-epwnExmyCWmwaOz+mJnAl1peEeHLBdQGC62BlLfSTQQ="; - }; - - postPatch = '' - substituteInPlace chainer/_environment_check.py \ - --replace-fail "import numpy.distutils.system_info" "import numpy" \ - --replace-fail "numpy.distutils.system_info" "numpy.__config__.get_info" - ''; - - dependencies = [ - filelock - protobuf - six - typing-extensions - numpy - ] ++ 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 = { - description = "Flexible framework of neural networks for deep learning"; - homepage = "https://chainer.org/"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ hyphon81 ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index d6fc096ca3c2..d06c318fbb10 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -110,6 +110,7 @@ mapAliases ({ case = throw "case has been removed, since it is an unused leaf package with a dependency on the nose test framework"; # added 2024-07-08 cchardet = faust-cchardet; # added 2023-03-02 cepa = throw "cepa has been removed, as onionshare switched back to stem"; # added 2024-05-07 + chainer = throw "chainer has been removed, as it is abandoned and broken"; # added 2024-12-31 chiabip158 = throw "chiabip158 has been removed. see https://github.com/NixOS/nixpkgs/pull/270254"; # added 2023-11-26 chiapos = throw "chiapos has been removed. see https://github.com/NixOS/nixpkgs/pull/270254"; # added 2023-11-26 chiavdf = throw "chiavdf has been removed. see https://github.com/NixOS/nixpkgs/pull/270254"; # added 2023-11-26 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bb340ba7b420..8eba67d3b5f9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2234,10 +2234,6 @@ self: super: with self; { chai = callPackage ../development/python-modules/chai { }; - chainer = callPackage ../development/python-modules/chainer { - inherit (pkgs.config) cudaSupport; - }; - chainmap = callPackage ../development/python-modules/chainmap { }; chainstream = callPackage ../development/python-modules/chainstream { }; diff --git a/pkgs/top-level/release-cuda.nix b/pkgs/top-level/release-cuda.nix index a19bc6f8ecaa..819f694fbd11 100644 --- a/pkgs/top-level/release-cuda.nix +++ b/pkgs/top-level/release-cuda.nix @@ -121,7 +121,6 @@ let boxx = linux; bpycv = linux; catboost = linux; - chainer = linux; cupy = linux; faiss = linux; faster-whisper = linux;