Hello guix-devel,

This is my first try at creating a package and patch for GNU Guix. I did
my best to follow the guidelines, but if there is any problems I can
correct them. Be sure to check if the synopsis and description are
appropriate for the package.

Thanks,
Erik
>From bb20406631bd3d93e7d72912b0f36dc1fd38e9ff Mon Sep 17 00:00:00 2001
From: Erik Edrosa <erik.edr...@gmail.com>
Date: Sun, 15 Nov 2015 20:29:46 -0500
Subject: [PATCH] gnu: Add python-pystache.

* gnu/packages/python.scm (python-pystache, python2-pystache): New
  variables.
---
 gnu/packages/python.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4e54ef9..df35550 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2352,6 +2352,32 @@ written in pure Python.")
 (define-public python2-jinja2
   (package-with-python2 python-jinja2))
 
+(define-public python-pystache
+  (package
+    (name "python-pystache")
+    (version "0.5.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://pypi.python.org/packages/source/p/pystache/pystache-";
+             version ".tar.gz"))
+       (sha256
+        (base32
+         "0nmqsfmiw4arjxqkmf9z66ml950pcdjk6aq4gin4sywmzdjw5fzp"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page "http://defunkt.io/pystache/";)
+    (synopsis "Python logic-less template engine")
+    (description
+     "Pystache is a Python implementation of the framework agnostic,
+logic-free templating system Mustache.")
+    (license license:expat)))
+
+(define-public python2-pystache
+  (package-with-python2 python-pystache))
+
 (define-public python-joblib
   (package
     (name "python-joblib")
-- 
2.6.3

Reply via email to