From 4087ddd6480ec1adab85687b8fa172155e819c78 Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 6 Oct 2023 13:00:07 +0900 Subject: 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 --- pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/development/python-modules/sphinxcontrib-devhelp') 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"; -- cgit 1.4.1