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:
Ricardo Wurmus 2019-09-11 23:29:07 +02:00
parent 6f2f7bc88a
commit 0f272518ec
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 7 additions and 0 deletions

View File

@ -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)