From patchwork Tue Oct 15 07:37:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tanguy LE CARROUR X-Patchwork-Id: 15740 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6F19017561; Tue, 15 Oct 2019 08:39:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 19ACF174BF for ; Tue, 15 Oct 2019 08:39:13 +0100 (BST) Received: from localhost ([::1]:36182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKHQG-0006RW-Lx for patchwork@mira.cbaines.net; Tue, 15 Oct 2019 03:39:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50157) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKHQ7-0006Mi-Vs for guix-patches@gnu.org; Tue, 15 Oct 2019 03:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKHQ6-0006qi-Mb for guix-patches@gnu.org; Tue, 15 Oct 2019 03:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33814) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iKHQ6-0006qb-JA for guix-patches@gnu.org; Tue, 15 Oct 2019 03:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iKHQ6-0007nq-Ds for guix-patches@gnu.org; Tue, 15 Oct 2019 03:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time. References: <20191003121316.irq3vdmu4ov6dygb@rafflesia> In-Reply-To: <20191003121316.irq3vdmu4ov6dygb@rafflesia> Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 15 Oct 2019 07:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37598 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37598@debbugs.gnu.org Received: via spool by 37598-submit@debbugs.gnu.org id=B37598.157112508729917 (code B ref 37598); Tue, 15 Oct 2019 07:39:02 +0000 Received: (at 37598) by debbugs.gnu.org; 15 Oct 2019 07:38:07 +0000 Received: from localhost ([127.0.0.1]:42631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKHPC-0007mT-IN for submit@debbugs.gnu.org; Tue, 15 Oct 2019 03:38:06 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:58817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iKHP8-0007ly-6u for 37598@debbugs.gnu.org; Tue, 15 Oct 2019 03:38:02 -0400 Received: from localhost (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id D7D71200006 for <37598@debbugs.gnu.org>; Tue, 15 Oct 2019 07:37:59 +0000 (UTC) Date: Tue, 15 Oct 2019 09:37:59 +0200 From: Tanguy Le Carrour Message-ID: <20191015073759.a5pbokxm3lfswx74@rafflesia> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180716 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From db4b5fe42bab56aca9fd5d5846349f3dd3c72d1d Mon Sep 17 00:00:00 2001 From: Tanguy Le Carrour 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 ;;; Copyright © 2019 Giacomo Leidi ;;; Copyright © 2019 Wiktor Żelazny +;;; Copyright © 2019 Tanguy Le Carrour ;;; ;;; 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")