guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python-scipy, python-matplotlib: Fix build after Sphinx upda


From: Marius Bakke
Subject: 02/02: gnu: python-scipy, python-matplotlib: Fix build after Sphinx update.
Date: Fri, 20 Jan 2017 19:54:45 +0000 (UTC)

mbakke pushed a commit to branch python-tests
in repository guix.

commit a50e03014177d2f00b5b85d3e1c295406f842016
Author: Marius Bakke <address@hidden>
Date:   Fri Jan 20 19:03:08 2017 +0100

    gnu: python-scipy, python-matplotlib: Fix build after Sphinx update.
    
    * gnu/packages/python.scm (python-sphinx-1.2.3, python2-sphinx-1.2.3): New
    variables.
    (python-matplotlib)[native-inputs]: Change 'python-sphinx' to 
'python-sphinx-1.2.3'.
    (python2-matplotlib)[native-inputs]: New field.
    (python-scipy)[native-inputs]: Change 'python-sphinx' to 
'python-sphinx-1.2.3'.
    (python2-scipy)[native-inputs]: New field.
---
 gnu/packages/python.scm |   36 +++++++++++++++++++++++++++++++++---
 1 file changed, 33 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 007c182..fd423d3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3016,6 +3016,24 @@ sources.")
       (propagated-inputs `(("python2-pytz" ,python2-pytz)
                        ,@(package-propagated-inputs base))))))
 
+;; This is needed for address@hidden and address@hidden, at least.
+;; Try removing this when they are updated.
+(define-public python-sphinx-1.2.3
+  (package (inherit python-sphinx)
+           (version "1.2.3")
+           (source (origin
+                     (method url-fetch)
+                     (uri (pypi-uri "Sphinx" version))
+                     (sha256
+                      (base32
+                       
"011xizm3jnmf4cvs5i6kgf6c5nn046h79i8j0vd0f27yw9j3p4wl"))))
+           ;; XXX: "'NoneType' object has no attribute 'split'".
+           (arguments '(#:tests? #f))))
+
+(define-public python2-sphinx-1.2.3
+  (package (inherit (package-with-python2
+                     (strip-python2-variant python-sphinx-1.2.3)))))
+
 (define-public python-sphinx-rtd-theme
   (package
     (name "python-sphinx-rtd-theme")
@@ -3747,7 +3765,7 @@ transcendental functions).")
        ("tk" ,tk)))
     (native-inputs
      `(("pkg-config" ,pkg-config)
-       ("python-sphinx" ,python-sphinx)
+       ("python-sphinx" ,python-sphinx-1.2.3)
        ("python-numpydoc" ,python-numpydoc)
        ("python-nose" ,python-nose)
        ("python-mock" ,python-mock)
@@ -3831,6 +3849,10 @@ toolkits.")
     (package (inherit matplotlib)
       ;; Make sure to use special packages for Python 2 instead
       ;; of those automatically rewritten by package-with-python2.
+      (native-inputs
+       `(("python2-sphinx" ,python2-sphinx-1.2.3)
+         ,@(fold alist-delete (package-native-inputs matplotlib)
+                 '("python-sphinx"))))
       (propagated-inputs
        `(("python2-pycairo" ,python2-pycairo)
          ("python2-pygobject-2" ,python2-pygobject-2)
@@ -3938,7 +3960,7 @@ functions.")
        ("openblas" ,openblas)))
     (native-inputs
      `(("python-nose" ,python-nose)
-       ("python-sphinx" ,python-sphinx)
+       ("python-sphinx" ,python-sphinx-1.2.3)
        ("python-numpydoc" ,python-numpydoc)
        ("gfortran" ,gfortran)
        ("texlive" ,texlive)
@@ -4013,7 +4035,15 @@ routines such as routines for numerical integration and 
optimization.")
     (license license:bsd-3)))
 
 (define-public python2-scipy
-  (package-with-python2 python-scipy))
+  (let ((scipy (package-with-python2
+                (strip-python2-variant python-scipy))))
+    (package (inherit scipy)
+             ;; Make sure to use special packages for Python 2 instead
+             ;; of those automatically rewritten by package-with-python2.
+             (native-inputs
+              `(("python2-sphinx" ,python2-sphinx-1.2.3)
+                ,@(fold alist-delete (package-native-inputs scipy)
+                        '("python-sphinx")))))))
 
 (define-public python-socksipy-branch
   (package



reply via email to

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