Skip to content

Commit

Permalink
python311Packages.sphinxcontrib: add pythonNamespaces to remove nspkg…
Browse files Browse the repository at this point in the history
….pth

This change fixes the import error reported in the following comment.
It is caused by the legacy setuptools namespace.
#210338 (comment)
  • Loading branch information
natsukium committed Oct 6, 2023
1 parent ddb3102 commit 1eb8fcf
Show file tree
Hide file tree
Showing 30 changed files with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ buildPythonPackage rec {
"sphinxcontrib.actdiag"
];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx actdiag extension";
homepage = "https://github.com/blockdiag/sphinxcontrib-actdiag";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx
doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx extension for running sphinx-apidoc on each build";
homepage = "https://github.com/sphinx-contrib/apidoc";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx
doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-applehelp";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ buildPythonPackage rec {
"sphinxcontrib.asyncio"
];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx extension to add asyncio-specific markups";
homepage = "https://github.com/aio-libs/sphinxcontrib-asyncio";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ buildPythonPackage rec {
doCheck = false;
pythonImportsCheck = [ "sphinxcontrib.bayesnet" ];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
homepage = "https://github.com/jluttine/sphinx-bayesnet";
description = "Bayesian networks and factor graphs in Sphinx using TikZ syntax";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ buildPythonPackage rec {
"sphinxcontrib.bibtex"
];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "A Sphinx extension for BibTeX style citations";
homepage = "https://github.com/mcmtroffaes/sphinxcontrib-bibtex";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ buildPythonPackage rec {

unittestFlagsArray = [ "-s" "tests" ];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx blockdiag extension";
homepage = "https://github.com/blockdiag/sphinxcontrib-blockdiag";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ buildPythonPackage rec {
"sphinxcontrib.confluencebuilder"
];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Confluence builder for sphinx";
homepage = "https://github.com/sphinx-contrib/confluencebuilder";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx
doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-devhelp";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ buildPythonPackage rec {
# No tests present upstream
doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx excel-table extension";
homepage = "https://github.com/hackerain/sphinxcontrib-excel-table";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ buildPythonPackage rec {
# Ensure package importing works
pythonImportsCheck = [ "sphinxcontrib.fulltoc" ];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Include a full table of contents in your Sphinx HTML sidebar";
homepage = "https://sphinxcontrib-fulltoc.readthedocs.org/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx
doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx extension which renders HTML help files";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-htmlhelp";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ buildPythonPackage rec {
sphinx
];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Extension to include jQuery on newer Sphinx releases";
longDescription = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx
doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML via JavaScript.";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-jsmath";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ buildPythonPackage rec {
"sphinxcontrib.katex"
];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx extension using KaTeX to render math in HTML";
homepage = "https://github.com/hagenw/sphinxcontrib-katex";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ buildPythonPackage rec {

doCheck = false; # no tests

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
homepage = "https://github.com/davidism/sphinxcontrib-log-cabinet";
description = "Sphinx extension to organize changelogs";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ buildPythonPackage rec {
"sphinxcontrib.mscgen"
];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx extension using mscgen to render diagrams";
homepage = "https://github.com/sphinx-contrib/mscgen";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ buildPythonPackage rec {
"sphinxcontrib.nwdiag"
];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx nwdiag extension";
homepage = "https://github.com/blockdiag/sphinxcontrib-nwdiag";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ buildPythonPackage rec {

doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
homepage = "https://github.com/ikalnytskyi/sphinxcontrib-openapi";
description = "OpenAPI (fka Swagger) spec renderer for Sphinx";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ buildPythonPackage rec {
# No tests included.
doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Provides a Sphinx domain for embedding UML diagram with PlantUML";
homepage = "https://github.com/sphinx-contrib/plantuml/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ buildPythonPackage rec {

pythonImportsCheck = [ "sphinxcontrib.programoutput" ];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx extension to include program output";
homepage = "https://github.com/NextThought/sphinxcontrib-programoutput";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx
doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document.";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-qthelp";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ buildPythonPackage rec {
"sphinxcontrib.seqdiag"
];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx seqdiag extension";
homepage = "https://github.com/blockdiag/sphinxcontrib-seqdiag";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx
doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle).";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-serializinghtml";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ buildPythonPackage rec {
"sphinxcontrib.spelling"
];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Sphinx spelling extension";
homepage = "https://github.com/sphinx-contrib/spelling";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ buildPythonPackage rec {

pythonImportsCheck = [ "sphinxcontrib.tikz" ];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "TikZ extension for Sphinx";
homepage = "https://bitbucket.org/philexander/tikz";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ buildPythonPackage rec {

doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = {
description = "Sphinx API for Web Apps";
homepage = "http://sphinx-doc.org/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ buildPythonPackage rec {

pythonImportsCheck = [ "sphinxcontrib.youtube" ];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Youtube extension for Sphinx";
homepage = "https://github.com/sphinx-contrib/youtube";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ buildPythonPackage rec {
# https://bitbucket.org/pypa/setuptools/issue/137/typeerror-unorderable-types-str-nonetype
doCheck = false;

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Provides a Sphinx domain for describing RESTful HTTP APIs";
homepage = "https://bitbucket.org/birkenfeld/sphinx-contrib";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ buildPythonPackage rec {

propagatedBuildInputs = [ sphinx ];

pythonNamespaces = [ "sphinxcontrib" ];

meta = with lib; {
description = "Extension for adding a simple Blog, News or Announcements section to a Sphinx website";
homepage = "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed";
Expand Down

0 comments on commit 1eb8fcf

Please sign in to comment.