From 52e838dce0f35bd1d29581e10fcac148800fe0fd Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 18 Jan 2026 19:14:15 +0100 Subject: [PATCH] python3Packages.sphinx-version-warning: drop Abandoned upstream in 2019 and has become a leaf. --- .../sphinx-version-warning/default.nix | 70 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 pkgs/development/python-modules/sphinx-version-warning/default.nix diff --git a/pkgs/development/python-modules/sphinx-version-warning/default.nix b/pkgs/development/python-modules/sphinx-version-warning/default.nix deleted file mode 100644 index faa4c72d6287..000000000000 --- a/pkgs/development/python-modules/sphinx-version-warning/default.nix +++ /dev/null @@ -1,70 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - fetchpatch, - setuptools, - sphinx, - sphinx-autoapi, - sphinx-prompt, - sphinx-rtd-theme, - sphinx-tabs, - sphinxemoji, - sphinxHook, -}: - -# Latest tagged release release "1.1.2" (Nov 2018) does not contain -# documentation, it was added in commits Aug 10, 2019. Repository does not have -# any activity since then. -buildPythonPackage { - pname = "sphinx-version-warning"; - version = "unstable-2019-08-10"; - pyproject = true; - - outputs = [ - "out" - "doc" - ]; - - postPatch = '' - substituteInPlace docs/conf.py --replace-fail "sphinx-prompt" "sphinx_prompt" - ''; - - src = fetchFromGitHub { - owner = "humitos"; - repo = "sphinx-version-warning"; - rev = "a82156c2ea08e5feab406514d0ccd9d48a345f48"; - hash = "sha256-WnJYMk1gPLT0dBn7lmxVDNVkLYkDCgQOtM9fQ3kc6k0="; - }; - - # It tries to write to file relative to it own location at runtime - # and gets permission denied, since Nix store is immutable. - patches = [ - (fetchpatch { - url = "https://github.com/humitos/sphinx-version-warning/commit/cb1b47becf2a0d3b2570ca9929f42f7d7e472b6f.patch"; - hash = "sha256-Vj0QAHIBmc0VxE+TTmJePzvr5nc45Sn2qqM+C/pkgtM="; - }) - ]; - - nativeBuildInputs = [ - sphinx-autoapi - sphinx-prompt - sphinx-rtd-theme - sphinx-tabs - sphinxemoji - sphinxHook - setuptools - ]; - - buildInputs = [ sphinx ]; - - pythonImportsCheck = [ "versionwarning" ]; - - meta = { - description = "Sphinx extension to show a warning banner at the top of your documentation"; - homepage = "https://github.com/humitos/sphinx-version-warning"; - changelog = "https://github.com/humitos/sphinx-version-warning/blob/master/CHANGELOG.rst"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ kaction ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 74cf0b2e0f47..9e30183f1831 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -482,6 +482,7 @@ mapAliases { sparsezoo = throw "sparsezoo has been removed since it is abandonned"; # added 2025-09-01 sphinx-hoverxref = throw "'sphinx-hoverxref' has been deprecated upstream. It's functionality was merged into the readthedocs.org admin panel."; # Added 2026-01-18" sphinx-jquery = throw "'sphinx-jquery' has been renamed to/replaced by 'sphinxcontrib-jquery'"; # Converted to throw 2025-10-29 + sphinx-version-warning = throw "'sphinx-version-warning' has been abandoned upstream in 2019"; # Added 2026-01-18 sphinx_rtd_theme = throw "'sphinx_rtd_theme' has been renamed to/replaced by 'sphinx-rtd-theme'"; # Converted to throw 2025-10-29 sphinxcontrib-autoapi = throw "'sphinxcontrib-autoapi' has been renamed to/replaced by 'sphinx-autoapi'"; # Converted to throw 2025-10-29 sphinxcontrib_httpdomain = throw "'sphinxcontrib_httpdomain' has been renamed to/replaced by 'sphinxcontrib-httpdomain'"; # Converted to throw 2025-10-29 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c78cd4f698cd..35f5851cc03f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17915,8 +17915,6 @@ self: super: with self; { sphinx-toolbox = callPackage ../development/python-modules/sphinx-toolbox { }; - sphinx-version-warning = callPackage ../development/python-modules/sphinx-version-warning { }; - sphinx-versions = callPackage ../development/python-modules/sphinx-versions { }; sphinxawesome-theme = callPackage ../development/python-modules/sphinxawesome-theme { };