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"
];
pythonNamespaces = [ "sphinxcontrib" ];
meta = with lib; {
description = "Sphinx actdiag extension";
homepage = "https://github.com/blockdiag/sphinxcontrib-actdiag";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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/";

View file

@ -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";

View file

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

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

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

View file

@ -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";

View file

@ -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/";

View file

@ -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";

View file

@ -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";

View file

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

View file

@ -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";

View file

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

View file

@ -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";

View file

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

View file

@ -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";

View file

@ -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";

View file

@ -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";