>From f460c88f853911618e77f869f31f4465923dbdd8 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 25 Sep 2016 20:40:52 +0100 Subject: [PATCH 2/4] gnu: Add python-sphinx-bootstrap-theme. * gnu/packages/python.scm (python-sphinx-bootstrap-theme, python2-sphinx-bootstrap-theme): New variables. --- gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 688a5d4..c649bee 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10939,3 +10939,33 @@ with an associated set of resolve methods that know how to fetch data.") provide extendible implementations of common aspects of a cloud so that you can focus on building massively scalable web applications.") (license license:expat))) + +(define-public python-sphinx-bootstrap-theme + (package + (name "python-sphinx-bootstrap-theme") + (version "0.4.12") + (source (origin + (method url-fetch) + (uri (pypi-uri "sphinx-bootstrap-theme" version)) + (sha256 + (base32 + "0wmm292rpfzxaib7zf2j6kdl1dl2xzx303hx8sx8qsdy0pkmrk65")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; No tests. + ;; Without this flag, various artifacts from the build inputs may end up + ;; in the final output. It also works around https://bugs.gnu.org/20765 . + #:configure-flags '("--single-version-externally-managed" "--root=/"))) + (home-page "https://ryan-roemer.github.io/sphinx-bootstrap-theme/") + (synopsis "Bootstrap theme for Sphinx") + (description "Sphinx theme that integrates the Bootstrap CSS / JavaScript +framework with various layout options, hierarchical menu navigation, and +mobile-friendly responsive design.") + (license license:expat) + (properties `((python2-variant . ,(delay python2-sphinx-bootstrap-theme)))))) + +(define-public python2-sphinx-bootstrap-theme + (package (inherit (package-with-python2 (strip-python2-variant + python-sphinx-bootstrap-theme))) + (native-inputs + `(("python2-setuptools" ,python2-setuptools))))) -- 2.10.0