From 3eab8602f3b2b50052dcf86211a4be8d4d26b87b Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 18 Feb 2026 11:18:49 +0100 Subject: [PATCH] rabbit: remove, replaced by `rabbit-ng` --- pkgs/by-name/ra/rabbit/package.nix | 93 ------------------------------ pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 93 deletions(-) delete mode 100644 pkgs/by-name/ra/rabbit/package.nix diff --git a/pkgs/by-name/ra/rabbit/package.nix b/pkgs/by-name/ra/rabbit/package.nix deleted file mode 100644 index 17a4cabcb733..000000000000 --- a/pkgs/by-name/ra/rabbit/package.nix +++ /dev/null @@ -1,93 +0,0 @@ -{ - lib, - python3, - fetchFromGitHub, - fetchPypi, -}: - -let - python3' = python3.override { - packageOverrides = self: super: { - scikit-learn = - let - version = "1.5.2"; - in - super.scikit-learn.overridePythonAttrs (old: { - inherit version; - - src = fetchPypi { - pname = "scikit_learn"; - inherit version; - hash = "sha256-tCN+17P90KSIJ5LmjvJUXVuqUKyju0WqffRoE4rY+U0="; - }; - - # Preserve the postPatch for this scikit-learn version - postPatch = '' - substituteInPlace meson.build --replace-fail \ - "run_command('sklearn/_build_utils/version.py', check: true).stdout().strip()," \ - "'${version}'," - ''; - - # There are 2 tests that are failing, disabling the tests for now. - # - test_csr_polynomial_expansion_index_overflow[csr_array-False-True-2-65535] - # - test_csr_polynomial_expansion_index_overflow[csr_array-False-True-3-2344] - doCheck = false; - }); - }; - self = python3; - }; - - # Make sure to check for which version of scikit-learn this project was built - # Currently version 2.3.2 is made with scikit-learn 1.5.2 - # Upgrading to newer versions of scikit-learn break the project - version = "2.3.2"; -in -python3'.pkgs.buildPythonApplication { - pname = "rabbit"; - inherit version; - pyproject = true; - - src = fetchFromGitHub { - owner = "natarajan-chidambaram"; - repo = "RABBIT"; - tag = version; - hash = "sha256-icf42vqYPNH1v1wEv/MpqScqMUr/qDlcGoW9kPY2R6s="; - }; - - pythonRelaxDeps = [ - "joblib" - "numpy" - "pandas" - "requests" - "scikit-learn" - "scipy" - "tqdm" - "urllib3" - ]; - - build-system = with python3'.pkgs; [ - setuptools - ]; - - dependencies = with python3'.pkgs; [ - joblib - numpy - pandas - python-dateutil - requests - scikit-learn - scipy - tqdm - urllib3 - ]; - - pythonImportsCheck = [ "rabbit" ]; - - meta = { - description = "Tool for identifying bot accounts based on their recent GitHub event history"; - homepage = "https://github.com/natarajan-chidambaram/RABBIT"; - license = lib.licenses.asl20; - mainProgram = "rabbit"; - maintainers = [ ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 68c5cba26d7a..4ed0a794ca9f 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1644,6 +1644,7 @@ mapAliases { qutebrowser-qt5 = lib.warnOnInstantiate "'qutebrowser-qt5' has been removed as it depended on vulnerable and outdated qt5 webengine" qutebrowser; # Added 2026-01-14 qv2ray = throw "'qv2ray' has been removed as it was unmaintained"; # Added 2025-06-03 ra-multiplex = lib.warnOnInstantiate "'ra-multiplex' has been renamed to/replaced by 'lspmux'" lspmux; # Added 2025-10-27 + rabbit = throw "'rabbit' has been renamed to/replaced by 'rabbit-ng'"; # Added 2026-02-18 radiance = throw "'radiance' has been removed as it was broken for a long time"; # Added 2026-01-02 radicale3 = throw "'radicale3' has been renamed to/replaced by 'radicale'"; # Converted to throw 2025-10-27 railway-travel = throw "'railway-travel' has been renamed to/replaced by 'diebahn'"; # Converted to throw 2025-10-27