Description: Fix for docs
 Remove import version from pip + replace
 sphinxcontrib.napoleon with sphinx.ext.napoleon.
Forwarded: not-needed
Author: Yogeswaran Umasankar <yogu@debian.org>
Last-Update: 2024-08-19

--- a/docs/conf.py
+++ b/docs/conf.py
@@ -29,7 +29,10 @@ copyright = f"2019-{datetime.datetime.no
 author = "Andrzej Klajnert"
 
 # The full version, including alpha/beta/rc tags
-release = pkg_resources.get_distribution("pip").version
+try:
+    release = pkg_resources.get_distribution("pip").version
+except pkg_resources.DistributionNotFound:
+    release = "unknown"
 
 
 # -- General configuration ---------------------------------------------------
@@ -39,7 +42,7 @@ release = pkg_resources.get_distribution
 # ones.
 
 extensions = [
-    "sphinxcontrib.napoleon",
+    "sphinx.ext.napoleon",
     "sphinx.ext.autodoc",
     "sphinx_autodoc_typehints",
 ]
