>From 7899fa820ea826b71375d805185a99cf8de0fc8f Mon Sep 17 00:00:00 2001 From: Manolis Ragkousis Date: Tue, 16 Aug 2016 14:06:03 +0300 Subject: [PATCH] gnu: Add python-cheetah. * gnu/packages/python.scm (python-cheetah, python2-cheetah): New variables. --- gnu/packages/python.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5cc54d0..a450a0c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2016 Sou Bunnbu ;;; Copyright © 2016 Troy Sankey ;;; Copyright © 2016 ng0 +;;; Copyright © 2016 Manolis Fragkiskos Ragkousis ;;; ;;; This file is part of GNU Guix. ;;; @@ -9886,3 +9887,40 @@ relays publish about themselves.") (define-public python2-stem (package-with-python2 python-stem)) + +(define-public python-cheetah + (package + (name "python-cheetah") + (version "2.4.4") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/" + "cd/b0/c2d700252fc251e91c08639ff41a8a5203b627f4e0a2ae18a6b662ab32ea/" + "Cheetah-" version ".tar.gz")) + (sha256 + (base32 + "0l5mm4lnysjkzpjr95q5ydm9xc8bv43fxmr79ypybrf1y0lq4c5y")))) + (build-system python-build-system) + (home-page "http://www.cheetahtemplate.org") + (synopsis + "Python-powered template engine and code generator") + (description + "Cheetah is an open source template engine and code generation tool. +It can be used standalone or combined with other tools and frameworks. Web +development is its principle use, but Cheetah is very flexible and is also +being used to generate C++ game code, Java, sql, form emails and even Python + code.") + (license (non-copyleft "file://LICENSE" + "See COPYING in the distribution.")))) + +(define-public python2-cheetah + (let ((base (package-with-python2 python-cheetah))) + (package + (inherit base) + (name "python2-cheetah") + (native-inputs + `(("python2-setuptools" ,python2-setuptools) + ("python2-markdown" ,python2-markdown) + ,@(package-native-inputs base)))))) -- 2.9.2