python3Packages.sphinxcontrib-newsfeed: drop

The package has last been touched upstream in 2020, and it's not
compatible with sphinx 9.1. It is no longer consumed in nixpkgs by
anything, allowing it to be dropped.
This commit is contained in:
Anton Mosich
2026-03-24 23:09:44 +01:00
parent 7d0d42afb8
commit f5f373074c
4 changed files with 1 additions and 53 deletions
@@ -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;
};
}
@@ -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)
+1
View File
@@ -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
-2
View File
@@ -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 { };