python311Packages.sphinxcontrib: add pythonNamespaces to remove nspkg.pth

This change fixes the import error reported in the following comment.
It is caused by the legacy setuptools namespace.
https://github.com/NixOS/nixpkgs/pull/210338#issuecomment-1447063024
This commit is contained in:
natsukium 2023-10-06 13:00:07 +09:00
parent ce209976f5
commit 4087ddd648
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53
30 changed files with 60 additions and 0 deletions

View file

@ -29,6 +29,8 @@ buildPythonPackage rec {
"sphinxcontrib.actdiag" "sphinxcontrib.actdiag"
]; ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx actdiag extension"; description = "Sphinx actdiag extension";
homepage = "https://github.com/blockdiag/sphinxcontrib-actdiag"; homepage = "https://github.com/blockdiag/sphinxcontrib-actdiag";

View file

@ -25,6 +25,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx # Check is disabled due to circular dependency of sphinx
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx extension for running sphinx-apidoc on each build"; description = "Sphinx extension for running sphinx-apidoc on each build";
homepage = "https://github.com/sphinx-contrib/apidoc"; homepage = "https://github.com/sphinx-contrib/apidoc";

View file

@ -17,6 +17,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx # Check is disabled due to circular dependency of sphinx
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books"; description = "sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-applehelp"; homepage = "https://github.com/sphinx-doc/sphinxcontrib-applehelp";

View file

@ -24,6 +24,8 @@ buildPythonPackage rec {
"sphinxcontrib.asyncio" "sphinxcontrib.asyncio"
]; ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx extension to add asyncio-specific markups"; description = "Sphinx extension to add asyncio-specific markups";
homepage = "https://github.com/aio-libs/sphinxcontrib-asyncio"; homepage = "https://github.com/aio-libs/sphinxcontrib-asyncio";

View file

@ -21,6 +21,8 @@ buildPythonPackage rec {
doCheck = false; doCheck = false;
pythonImportsCheck = [ "sphinxcontrib.bayesnet" ]; pythonImportsCheck = [ "sphinxcontrib.bayesnet" ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/jluttine/sphinx-bayesnet"; homepage = "https://github.com/jluttine/sphinx-bayesnet";
description = "Bayesian networks and factor graphs in Sphinx using TikZ syntax"; description = "Bayesian networks and factor graphs in Sphinx using TikZ syntax";

View file

@ -32,6 +32,8 @@ buildPythonPackage rec {
"sphinxcontrib.bibtex" "sphinxcontrib.bibtex"
]; ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "A Sphinx extension for BibTeX style citations"; description = "A Sphinx extension for BibTeX style citations";
homepage = "https://github.com/mcmtroffaes/sphinxcontrib-bibtex"; homepage = "https://github.com/mcmtroffaes/sphinxcontrib-bibtex";

View file

@ -27,6 +27,8 @@ buildPythonPackage rec {
unittestFlagsArray = [ "-s" "tests" ]; unittestFlagsArray = [ "-s" "tests" ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx blockdiag extension"; description = "Sphinx blockdiag extension";
homepage = "https://github.com/blockdiag/sphinxcontrib-blockdiag"; homepage = "https://github.com/blockdiag/sphinxcontrib-blockdiag";

View file

@ -37,6 +37,8 @@ buildPythonPackage rec {
"sphinxcontrib.confluencebuilder" "sphinxcontrib.confluencebuilder"
]; ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Confluence builder for sphinx"; description = "Confluence builder for sphinx";
homepage = "https://github.com/sphinx-contrib/confluencebuilder"; homepage = "https://github.com/sphinx-contrib/confluencebuilder";

View file

@ -15,6 +15,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx # Check is disabled due to circular dependency of sphinx
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document."; description = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-devhelp"; homepage = "https://github.com/sphinx-doc/sphinxcontrib-devhelp";

View file

@ -21,6 +21,8 @@ buildPythonPackage rec {
# No tests present upstream # No tests present upstream
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx excel-table extension"; description = "Sphinx excel-table extension";
homepage = "https://github.com/hackerain/sphinxcontrib-excel-table"; homepage = "https://github.com/hackerain/sphinxcontrib-excel-table";

View file

@ -21,6 +21,8 @@ buildPythonPackage rec {
# Ensure package importing works # Ensure package importing works
pythonImportsCheck = [ "sphinxcontrib.fulltoc" ]; pythonImportsCheck = [ "sphinxcontrib.fulltoc" ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Include a full table of contents in your Sphinx HTML sidebar"; description = "Include a full table of contents in your Sphinx HTML sidebar";
homepage = "https://sphinxcontrib-fulltoc.readthedocs.org/"; homepage = "https://sphinxcontrib-fulltoc.readthedocs.org/";

View file

@ -17,6 +17,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx # Check is disabled due to circular dependency of sphinx
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx extension which renders HTML help files"; description = "Sphinx extension which renders HTML help files";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-htmlhelp"; homepage = "https://github.com/sphinx-doc/sphinxcontrib-htmlhelp";

View file

@ -31,6 +31,8 @@ buildPythonPackage rec {
sphinx sphinx
]; ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Extension to include jQuery on newer Sphinx releases"; description = "Extension to include jQuery on newer Sphinx releases";
longDescription = '' longDescription = ''

View file

@ -17,6 +17,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx # Check is disabled due to circular dependency of sphinx
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML via JavaScript."; description = "sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML via JavaScript.";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-jsmath"; homepage = "https://github.com/sphinx-doc/sphinxcontrib-jsmath";

View file

@ -28,6 +28,8 @@ buildPythonPackage rec {
"sphinxcontrib.katex" "sphinxcontrib.katex"
]; ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx extension using KaTeX to render math in HTML"; description = "Sphinx extension using KaTeX to render math in HTML";
homepage = "https://github.com/hagenw/sphinxcontrib-katex"; homepage = "https://github.com/hagenw/sphinxcontrib-katex";

View file

@ -18,6 +18,8 @@ buildPythonPackage rec {
doCheck = false; # no tests doCheck = false; # no tests
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/davidism/sphinxcontrib-log-cabinet"; homepage = "https://github.com/davidism/sphinxcontrib-log-cabinet";
description = "Sphinx extension to organize changelogs"; description = "Sphinx extension to organize changelogs";

View file

@ -30,6 +30,8 @@ buildPythonPackage rec {
"sphinxcontrib.mscgen" "sphinxcontrib.mscgen"
]; ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx extension using mscgen to render diagrams"; description = "Sphinx extension using mscgen to render diagrams";
homepage = "https://github.com/sphinx-contrib/mscgen"; homepage = "https://github.com/sphinx-contrib/mscgen";

View file

@ -29,6 +29,8 @@ buildPythonPackage rec {
"sphinxcontrib.nwdiag" "sphinxcontrib.nwdiag"
]; ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx nwdiag extension"; description = "Sphinx nwdiag extension";
homepage = "https://github.com/blockdiag/sphinxcontrib-nwdiag"; homepage = "https://github.com/blockdiag/sphinxcontrib-nwdiag";

View file

@ -36,6 +36,8 @@ buildPythonPackage rec {
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/ikalnytskyi/sphinxcontrib-openapi"; homepage = "https://github.com/ikalnytskyi/sphinxcontrib-openapi";
description = "OpenAPI (fka Swagger) spec renderer for Sphinx"; description = "OpenAPI (fka Swagger) spec renderer for Sphinx";

View file

@ -26,6 +26,8 @@ buildPythonPackage rec {
# No tests included. # No tests included.
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Provides a Sphinx domain for embedding UML diagram with PlantUML"; description = "Provides a Sphinx domain for embedding UML diagram with PlantUML";
homepage = "https://github.com/sphinx-contrib/plantuml/"; homepage = "https://github.com/sphinx-contrib/plantuml/";

View file

@ -23,6 +23,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "sphinxcontrib.programoutput" ]; pythonImportsCheck = [ "sphinxcontrib.programoutput" ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx extension to include program output"; description = "Sphinx extension to include program output";
homepage = "https://github.com/NextThought/sphinxcontrib-programoutput"; homepage = "https://github.com/NextThought/sphinxcontrib-programoutput";

View file

@ -17,6 +17,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx # Check is disabled due to circular dependency of sphinx
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document."; description = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document.";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-qthelp"; homepage = "https://github.com/sphinx-doc/sphinxcontrib-qthelp";

View file

@ -29,6 +29,8 @@ buildPythonPackage rec {
"sphinxcontrib.seqdiag" "sphinxcontrib.seqdiag"
]; ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx seqdiag extension"; description = "Sphinx seqdiag extension";
homepage = "https://github.com/blockdiag/sphinxcontrib-seqdiag"; homepage = "https://github.com/blockdiag/sphinxcontrib-seqdiag";

View file

@ -17,6 +17,8 @@ buildPythonPackage rec {
# Check is disabled due to circular dependency of sphinx # Check is disabled due to circular dependency of sphinx
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle)."; description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle).";
homepage = "https://github.com/sphinx-doc/sphinxcontrib-serializinghtml"; homepage = "https://github.com/sphinx-doc/sphinxcontrib-serializinghtml";

View file

@ -42,6 +42,8 @@ buildPythonPackage rec {
"sphinxcontrib.spelling" "sphinxcontrib.spelling"
]; ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Sphinx spelling extension"; description = "Sphinx spelling extension";
homepage = "https://github.com/sphinx-contrib/spelling"; homepage = "https://github.com/sphinx-contrib/spelling";

View file

@ -28,6 +28,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "sphinxcontrib.tikz" ]; pythonImportsCheck = [ "sphinxcontrib.tikz" ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "TikZ extension for Sphinx"; description = "TikZ extension for Sphinx";
homepage = "https://bitbucket.org/philexander/tikz"; homepage = "https://bitbucket.org/philexander/tikz";

View file

@ -28,6 +28,8 @@ buildPythonPackage rec {
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = { meta = {
description = "Sphinx API for Web Apps"; description = "Sphinx API for Web Apps";
homepage = "http://sphinx-doc.org/"; homepage = "http://sphinx-doc.org/";

View file

@ -27,6 +27,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "sphinxcontrib.youtube" ]; pythonImportsCheck = [ "sphinxcontrib.youtube" ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Youtube extension for Sphinx"; description = "Youtube extension for Sphinx";
homepage = "https://github.com/sphinx-contrib/youtube"; homepage = "https://github.com/sphinx-contrib/youtube";

View file

@ -19,6 +19,8 @@ buildPythonPackage rec {
# https://bitbucket.org/pypa/setuptools/issue/137/typeerror-unorderable-types-str-nonetype # https://bitbucket.org/pypa/setuptools/issue/137/typeerror-unorderable-types-str-nonetype
doCheck = false; doCheck = false;
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Provides a Sphinx domain for describing RESTful HTTP APIs"; description = "Provides a Sphinx domain for describing RESTful HTTP APIs";
homepage = "https://bitbucket.org/birkenfeld/sphinx-contrib"; homepage = "https://bitbucket.org/birkenfeld/sphinx-contrib";

View file

@ -15,6 +15,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ sphinx ]; propagatedBuildInputs = [ sphinx ];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; { meta = with lib; {
description = "Extension for adding a simple Blog, News or Announcements section to a Sphinx website"; description = "Extension for adding a simple Blog, News or Announcements section to a Sphinx website";
homepage = "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed"; homepage = "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed";