about summary refs log tree commit diff
path: root/pkgs/development/python-modules/sphinxcontrib-devhelp
diff options
context:
space:
mode:
authornatsukium <tomoya.otabi@gmail.com>2023-10-06 13:00:07 +0900
committernatsukium <tomoya.otabi@gmail.com>2023-10-26 23:05:13 +0900
commit4087ddd6480ec1adab85687b8fa172155e819c78 (patch)
tree9a2277408f3e1fbfac8c0379ae042163444e56b7 /pkgs/development/python-modules/sphinxcontrib-devhelp
parentce209976f569f4e62c406fa3b4344c8e9b23830f (diff)
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
Diffstat (limited to 'pkgs/development/python-modules/sphinxcontrib-devhelp')
-rw-r--r--pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix b/pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix
index 293f4c856ef53..946e7eeabd472 100644
--- a/pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix
+++ b/pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix
@@ -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";