gnu: python-ipython-documentation: Make reproducible.
Fixes <https://bugs.gnu.org/37373/>. * gnu/packages/python-xyz.scm (python-ipython)[arguments]: Add phase "make-docs-reproducible" to remove timestamps from documentation generated in dependent python-ipython-documentation package.
This commit is contained in:
parent
6f2f7bc88a
commit
0f272518ec
|
@ -5399,6 +5399,13 @@ computing.")
|
|||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'make-docs-reproducible
|
||||
(lambda _
|
||||
(substitute* "IPython/sphinxext/ipython_directive.py"
|
||||
((".*import datetime") "")
|
||||
((".*datetime.datetime.now\\(\\)") "")
|
||||
(("%timeit") "# %timeit"))
|
||||
#t))
|
||||
;; Tests can only be run after the library has been installed and not
|
||||
;; within the source directory.
|
||||
(delete 'check)
|
||||
|
|
Loading…
Reference in New Issue