Description: Make build reproducible
 This patch replaces local file links with remote url in the sphinx generated documentation.
 Also disables printing object id in the generated doc.
Author: Mohammed Bilal <mdbilal@disroot.org>
Forwarded: not-needed
Last-Update: 2022-08-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- nipype.orig/nipype/sphinxext/gh.py
+++ nipype/nipype/sphinxext/gh.py
@@ -21,7 +21,7 @@
     """Return local or remote url for an object."""
     filename = inspect.getsourcefile(obj)
     uri = "file://%s" % filename
-    revision = _get_git_revision()
+    revision = "master"
     if revision is not None:
         shortfile = os.path.join("nipype", filename.split("nipype/")[-1])
         uri = f"http://github.com/nipy/nipype/blob/{revision}/{shortfile}"
--- nipype.orig/nipype/algorithms/misc.py
+++ nipype/nipype/algorithms/misc.py
@@ -184,7 +184,7 @@
         shape=(4, 4),
         desc="transformation matrix that will be left multiplied by the\
         affine matrix",
-        usedefault=True,
+        usedefault=False,
     )
 
 
--- nipype.orig/nipype/algorithms/tests/test_auto_ModifyAffine.py
+++ nipype/nipype/algorithms/tests/test_auto_ModifyAffine.py
@@ -5,7 +5,7 @@
 def test_ModifyAffine_inputs():
     input_map = dict(
         transformation_matrix=dict(
-            usedefault=True,
+            usedefault=False,
         ),
         volumes=dict(
             mandatory=True,
