guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: python-ipython-documentation: Make reproducible.


From: guix-commits
Subject: 01/01: gnu: python-ipython-documentation: Make reproducible.
Date: Wed, 11 Sep 2019 17:31:02 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 0f272518eca06f849cef86d26c294f17edc82c3e
Author: Ricardo Wurmus <address@hidden>
Date:   Wed Sep 11 23:29:07 2019 +0200

    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.
---
 gnu/packages/python-xyz.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 819b304..00bffca 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]