diff mbox

[2/5] gnu: Add python-alabaster.

Message ID 17d62eabfc3346c1386cfd473a23d2a3f91a260e.1467421110.git.leo@famulari.name
State New
Headers show

Commit Message

Leo Famulari July 2, 2016, 1:04 a.m. UTC
* gnu/packages/python.scm (python-alabaster, python2-alabaster): New variables.
---
 gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Comments

Ludovic Courtès July 3, 2016, 9:55 p.m. UTC | #1
Leo Famulari <leo@famulari.name> skribis:

> * gnu/packages/python.scm (python-alabaster, python2-alabaster): New variables.

[...]

> +Sphinx documentation system. It is compatible with Python 2 and 3, and it is the
                              ^^
Two spaces after period, but otherwise LGTM.

Ludo’.
diff mbox

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 469f1fa..4eed92f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9719,3 +9719,30 @@  the PNG, JPEG, JPEG 2000, and GIF formats.")
       (native-inputs
        `(("python2-setuptools" ,python2-setuptools)
          ,@(package-native-inputs base))))))
+
+(define-public python-alabaster
+  (package
+    (name "python-alabaster")
+    (version "0.7.8")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "alabaster" version))
+              (sha256
+               (base32
+                "1zqz9hsvnmpjklmir6g7rxlv2fslrgsnwb91r9sgz4n1zja1pjx1"))))
+    (build-system python-build-system)
+    (synopsis "Default theme for the Sphinx documentation system")
+    (description "Alabaster is a responsive and configurable theme for the
+Sphinx documentation system. It is compatible with Python 2 and 3, and it is the
+default Sphinx theme.")
+    (home-page "https://github.com/bitprophet/alabaster")
+    (license bsd-3)
+    (properties `((python2-variant . ,(delay python2-alabaster))))))
+
+(define-public python2-alabaster
+  (let ((base (package-with-python2 (strip-python2-variant python-alabaster))))
+    (package
+      (inherit base)
+      (native-inputs
+       `(("python2-setuptools" ,python2-setuptools)
+         ,@(package-native-inputs base))))))