From 77e2a627333baa82d4f83882e5bda629e5f2a381 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Fri, 14 Apr 2017 11:06:00 +0300 Subject: [PATCH 05/20] gnu: Add python-sphinx-1.3.3 * gnu/packages/python.scm (python-sphinx-1.3.3): New variable. --- gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 631b6fd..a849e70 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -14079,3 +14079,40 @@ scenarios") (define-public python2-sphinx-rtd-theme-0.1.9 (package-with-python2 python-sphinx-rtd-theme-0.1.9)) + +(define-public python-sphinx-1.3.3 + ;; python-httpretty has a hard requirement for + ;; sphinx == 1.3.3 + (package + (inherit python-sphinx) + (name "python-sphinx") + (version "1.3.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Sphinx" version)) + (sha256 + (base32 + "1n3h08qxfx9bywv7nhjz0p5bpp1xgy4nzalxr3mx6syra7rvyxs0")))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; Requires Internet access. + (delete-file "tests/test_build.py") + (delete-file "tests/test_build_applehelp.py") + (delete-file "tests/test_i18n.py") + (delete-file "tests/test_build_html.py") + (delete-file "tests/test_build_texinfo.py") + (delete-file "tests/test_build_latex.py") + (zero? (system* "make" "test"))))))) + (native-inputs + `(("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme) + ("python-nose" ,python-nose) + ("graphviz" ,graphviz) + ("python-html5lib" ,python-html5lib) + ("python-mock" ,python-mock))))) + +(define-public python2-sphinx-1.3.3 + (package-with-python2 python-sphinx-1.3.3)) -- 2.10.2