python312Packages.chainer: remove (#369449)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
@@ -121,7 +121,6 @@ let
|
||||
boxx = linux;
|
||||
bpycv = linux;
|
||||
catboost = linux;
|
||||
chainer = linux;
|
||||
cupy = linux;
|
||||
faiss = linux;
|
||||
faster-whisper = linux;
|
||||
|
||||
Reference in New Issue
Block a user