diff --git a/pkgs/development/python-modules/sphinxcontrib-newsfeed/default.nix b/pkgs/development/python-modules/sphinxcontrib-newsfeed/default.nix deleted file mode 100644 index 1badf4ca4d48..000000000000 --- a/pkgs/development/python-modules/sphinxcontrib-newsfeed/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchPypi, - setuptools, - sphinx, -}: - -buildPythonPackage rec { - pname = "sphinxcontrib-newsfeed"; - version = "0.1.4"; - pyproject = true; - - src = fetchPypi { - inherit pname version; - sha256 = "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p"; - }; - - patches = [ - # reference: https://github.com/prometheusresearch/sphinxcontrib-newsfeed/pull/7 - ./fix-for-sphinx-9.1.patch - ]; - - nativeBuildInputs = [ setuptools ]; - - propagatedBuildInputs = [ sphinx ]; - - pythonNamespaces = [ "sphinxcontrib" ]; - - meta = { - description = "Extension for adding a simple Blog, News or Announcements section to a Sphinx website"; - homepage = "https://github.com/prometheusresearch/sphinxcontrib-newsfeed"; - license = lib.licenses.bsd2; - }; -} diff --git a/pkgs/development/python-modules/sphinxcontrib-newsfeed/fix-for-sphinx-9.1.patch b/pkgs/development/python-modules/sphinxcontrib-newsfeed/fix-for-sphinx-9.1.patch deleted file mode 100644 index ce6e841a708e..000000000000 --- a/pkgs/development/python-modules/sphinxcontrib-newsfeed/fix-for-sphinx-9.1.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/sphinxcontrib/newsfeed.py b/sphinxcontrib/newsfeed.py -index 2e155cd..64b30d9 100644 ---- a/sphinxcontrib/newsfeed.py -+++ b/sphinxcontrib/newsfeed.py -@@ -265,8 +265,9 @@ def process_feed(app, doctree, fromdocname): - replacement.append(section_node) - env.resolve_references(rss_item_description, docname, app.builder) - if app.builder.format == 'html': -- rss_item_description = app.builder.render_partial( -- rss_item_description)['body'] -+ rendered = app.builder.render_partial(rss_item_description) -+ # Sphinx 9.1+ changed 'body' to 'fragment' -+ rss_item_description = rendered.get('fragment', rendered.get('body', '')) - rss_item_date = meta['date'] - rss_item = RSSItem(rss_item_title, rss_item_link, - rss_item_description, rss_item_date) diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 4e908bb2838f..ec00adf12f0b 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -529,6 +529,7 @@ mapAliases { 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-newsfeed = throw "'sphinxcontrib-newsfeed has been removed due to abandonment upstream"; # Added 2026-03-24 sphinxcontrib_httpdomain = throw "'sphinxcontrib_httpdomain' has been renamed to/replaced by 'sphinxcontrib-httpdomain'"; # Converted to throw 2025-10-29 sphinxcontrib_newsfeed = throw "'sphinxcontrib_newsfeed' has been renamed to/replaced by 'sphinxcontrib-newsfeed'"; # Converted to throw 2025-10-29 sphinxcontrib_plantuml = throw "'sphinxcontrib_plantuml' has been renamed to/replaced by 'sphinxcontrib-plantuml'"; # Converted to throw 2025-10-29 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 07742139e40a..89c7e9406dd1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18238,8 +18238,6 @@ self: super: with self; { inherit (pkgs) mscgen; }; - sphinxcontrib-newsfeed = callPackage ../development/python-modules/sphinxcontrib-newsfeed { }; - sphinxcontrib-nwdiag = callPackage ../development/python-modules/sphinxcontrib-nwdiag { }; sphinxcontrib-openapi = callPackage ../development/python-modules/sphinxcontrib-openapi { };