mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
db967b6462
commit
a50e030141
1 changed files with 33 additions and 3 deletions
|
@ -3016,6 +3016,24 @@ sources.")
|
||||||
(propagated-inputs `(("python2-pytz" ,python2-pytz)
|
(propagated-inputs `(("python2-pytz" ,python2-pytz)
|
||||||
,@(package-propagated-inputs base))))))
|
,@(package-propagated-inputs base))))))
|
||||||
|
|
||||||
|
;; This is needed for python-matplotlib@1.4 and python-scipy@0.16, 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
|
(define-public python-sphinx-rtd-theme
|
||||||
(package
|
(package
|
||||||
(name "python-sphinx-rtd-theme")
|
(name "python-sphinx-rtd-theme")
|
||||||
|
@ -3747,7 +3765,7 @@ transcendental functions).")
|
||||||
("tk" ,tk)))
|
("tk" ,tk)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
("python-sphinx" ,python-sphinx)
|
("python-sphinx" ,python-sphinx-1.2.3)
|
||||||
("python-numpydoc" ,python-numpydoc)
|
("python-numpydoc" ,python-numpydoc)
|
||||||
("python-nose" ,python-nose)
|
("python-nose" ,python-nose)
|
||||||
("python-mock" ,python-mock)
|
("python-mock" ,python-mock)
|
||||||
|
@ -3831,6 +3849,10 @@ toolkits.")
|
||||||
(package (inherit matplotlib)
|
(package (inherit matplotlib)
|
||||||
;; Make sure to use special packages for Python 2 instead
|
;; Make sure to use special packages for Python 2 instead
|
||||||
;; of those automatically rewritten by package-with-python2.
|
;; 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
|
(propagated-inputs
|
||||||
`(("python2-pycairo" ,python2-pycairo)
|
`(("python2-pycairo" ,python2-pycairo)
|
||||||
("python2-pygobject-2" ,python2-pygobject-2)
|
("python2-pygobject-2" ,python2-pygobject-2)
|
||||||
|
@ -3938,7 +3960,7 @@ functions.")
|
||||||
("openblas" ,openblas)))
|
("openblas" ,openblas)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-nose" ,python-nose)
|
`(("python-nose" ,python-nose)
|
||||||
("python-sphinx" ,python-sphinx)
|
("python-sphinx" ,python-sphinx-1.2.3)
|
||||||
("python-numpydoc" ,python-numpydoc)
|
("python-numpydoc" ,python-numpydoc)
|
||||||
("gfortran" ,gfortran)
|
("gfortran" ,gfortran)
|
||||||
("texlive" ,texlive)
|
("texlive" ,texlive)
|
||||||
|
@ -4013,7 +4035,15 @@ routines such as routines for numerical integration and optimization.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python2-scipy
|
(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
|
(define-public python-socksipy-branch
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue