[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time.
From: |
Tanguy Le Carrour |
Subject: |
[bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time. |
Date: |
Tue, 15 Oct 2019 09:37:59 +0200 |
User-agent: |
NeoMutt/20180716 |
>From db4b5fe42bab56aca9fd5d5846349f3dd3c72d1d Mon Sep 17 00:00:00 2001
From: Tanguy Le Carrour <address@hidden>
Date: Thu, 3 Oct 2019 09:05:26 +0200
Subject: [PATCH 1/4] gnu: Add python-jinja2-time.
* gnu/packages/python-xyz.scm (python-jinja2-time): New public variable.
---
gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d555512ed7..74898d1a87 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -66,6 +66,7 @@
;;; Copyright © 2019 Jacob MacDonald <address@hidden>
;;; Copyright © 2019 Giacomo Leidi <address@hidden>
;;; Copyright © 2019 Wiktor Żelazny <address@hidden>
+;;; Copyright © 2019 Tanguy Le Carrour <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2495,6 +2496,30 @@ written in pure Python.")
(define-public python2-jinja2
(package-with-python2 python-jinja2))
+(define-public python-jinja2-time
+ (package
+ (name "python-jinja2-time")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "jinja2-time" version))
+ (sha256
+ (base32
+ "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-arrow" ,python-arrow)
+ ("python-jinja2" ,python-jinja2)))
+ (home-page
+ "https://github.com/hackebrot/jinja2-time")
+ (synopsis "Jinja2 Extension for Dates and Times")
+ (description
+ "This extension for the template engine Jinja2 adds a 'now' tag providing
+a convenient access to the arrow.now() API from templates. A format string can
+be provided to control the output.")
+ (license license:expat)))
+
(define-public python-pystache
(package
(name "python-pystache")
--
2.23.0
- [bug#37598] [PATCH 2/4] gnu: Add python-poyo., (continued)
- [bug#37598] [PATCH 2/4] gnu: Add python-poyo., Tanguy Le Carrour, 2019/10/04
- [bug#37598] [PATCH 3/4] gnu: Add python-whichcraft., Tanguy Le Carrour, 2019/10/04
- [bug#37598] [PATCH 4/4] gnu: Add python-cookiecutter., Tanguy Le Carrour, 2019/10/04
- [bug#37598] Updating patches, Tanguy Le Carrour, 2019/10/14
- [bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time., Tanguy Le Carrour, 2019/10/14
- [bug#37598] [PATCH 2/4] gnu: Add python-poyo., Tanguy Le Carrour, 2019/10/14
- [bug#37598] [PATCH 3/4] gnu: Add python-whichcraft., Tanguy Le Carrour, 2019/10/14
- [bug#37598] [PATCH 4/4] gnu: Add python-cookiecutter., Tanguy Le Carrour, 2019/10/14
- [bug#37598] [PATCH 2/4] gnu: Add python-poyo., Tanguy Le Carrour, 2019/10/15
- [bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time.,
Tanguy Le Carrour <=
- [bug#37598] [PATCH 3/4] gnu: Add python-whichcraft., Tanguy Le Carrour, 2019/10/15
- [bug#37598] [PATCH 4/4] gnu: Add python-cookiecutter., Tanguy Le Carrour, 2019/10/15