Author: Andreas Tille <tille@debian.org>
Last-Update: 2020-02-20
Description: Get sphinx doc somehow building

--- nipype.orig/doc/conf.py
+++ nipype/doc/conf.py
@@ -41,7 +41,9 @@
 ex2rst = str(conf_py.parent.parent / "tools" / "ex2rst")
 
 with TemporaryDirectory() as tmpdir:
-    sp.run(
+    # Debian: no online resources should be accessed during build
+    if False:
+        sp.run(
         [
             "git",
             "clone",
@@ -53,6 +55,7 @@
         check=True,
     )
     source_dir = Path(tmpdir) / "package" / "niflow" / "nipype1" / "examples"
+    source_dir.mkdir(parents=True)  # Debian: fake one, no content
     shutil.copytree(
         source_dir,
         python_dir,
@@ -75,7 +78,8 @@
     ],
     check=True,
 )
-sp.run(
+if False:
+    sp.run(
     [
         sys.executable,
         ex2rst,
@@ -126,18 +130,19 @@
     "vtk",
 ]
 
-# Accept custom section names to be parsed for numpy-style docstrings
-# of parameters.
-# Requires pinning sphinxcontrib-napoleon to a specific commit while
-# https://github.com/sphinx-contrib/napoleon/pull/10 is merged.
-napoleon_use_param = False
-napoleon_custom_sections = [
-    ("Inputs", "Parameters"),
-    ("Outputs", "Parameters"),
-    ("Attributes", "Parameters"),
-    ("Mandatory Inputs", "Parameters"),
-    ("Optional Inputs", "Parameters"),
-]
+# Debian: comes as sphinx.ext.napoleon, we do not use pinned one
+# # Accept custom section names to be parsed for numpy-style docstrings
+# # of parameters.
+# # Requires pinning sphinxcontrib-napoleon to a specific commit while
+# # https://github.com/sphinx-contrib/napoleon/pull/10 is merged.
+# napoleon_use_param = False
+# napoleon_custom_sections = [
+#     ("Inputs", "Parameters"),
+#     ("Outputs", "Parameters"),
+#     ("Attributes", "Parameters"),
+#     ("Mandatory Inputs", "Parameters"),
+#     ("Optional Inputs", "Parameters"),
+# ]
 
 
 # Add any paths that contain templates here, relative to this directory.
--- nipype.orig/doc/requirements.txt
+++ nipype/doc/requirements.txt
@@ -5,5 +5,3 @@
 sphinx-argparse
 sphinx>=2.1.2
 sphinxcontrib-apidoc
-sphinxcontrib-napoleon
-niflow-nipype1-workflows
