Patchwork [2/4] gnu: Add python-sphinx-bootstrap-theme.

login
register
mail settings
Submitter Marius Bakke
Date Sept. 25, 2016, 9:17 p.m.
Message ID <20160925211728.7636-2-mbakke@fastmail.com>
Download mbox | patch
Permalink /patch/15995/
State New
Headers show

Comments

Marius Bakke - Sept. 25, 2016, 9:17 p.m.
* gnu/packages/python.scm (python-sphinx-bootstrap-theme,
  python2-sphinx-bootstrap-theme): New variables.
---
 gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
Hartmut Goebel - Sept. 26, 2016, 9:35 a.m.
Am 25.09.2016 um 23:17 schrieb Marius Bakke:
> +       #:configure-flags '("--single-version-externally-managed" "--root=/")))

Please add a commend why you are adding this. (I assume, this is to
avoid building a zipped .egg, but AFAIK we do not do this for other
packages either.

> +    (home-page "https://ryan-roemer.github.io/sphinx-bootstrap-theme/README.html")
I'd say the homepage is
<https://ryan-roemer.github.io/sphinx-bootstrap-theme/> (without the
READM.hmtl)

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 688a5d4..4b8caea 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10939,3 +10939,31 @@  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.
+       #:configure-flags '("--single-version-externally-managed" "--root=/")))
+    (home-page "https://ryan-roemer.github.io/sphinx-bootstrap-theme/README.html")
+    (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)))))