unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Tanguy Le Carrour <tanguy@bioneland.org>
To: 69453@debbugs.gnu.org
Cc: Tanguy Le Carrour <tanguy@bioneland.org>,
	Lars-Dominik Braun <lars@6xq.net>, Marius Bakke <marius@gnu.org>,
	Munyoki Kilyungi <me@bonfacemunyoki.com>,
	Sharlatan Hellseher <sharlatanus@gmail.com>,
	jgart <jgart@dismail.de>
Subject: [bug#69453] [PATCH] gnu: Add python-jinja2-fragments.
Date: Wed, 28 Feb 2024 12:20:40 +0100	[thread overview]
Message-ID: <266040ca8d6bdb38684823123995f119295618b5.1709119074.git.tanguy@bioneland.org> (raw)

Hi Guix,

This patch adds python-jinja2-fragments. I disabled tests because
they rely unconditionally on many web frameworks, some we don’t even have
packaged.

Regards.

* gnu/packages/python-xyz.scm (python-jinja2-fragments): New variable.

Change-Id: Iaa272050b8b54bb19a19fbf2e700eac8b9428063
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 348b3084b5..0f8429852d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6068,6 +6068,29 @@ (define-public python-jinja2-time
 templates.  A format string can be provided to control the output.")
     (license license:expat)))
 
+(define-public python-jinja2-fragments
+  (package
+    (name "python-jinja2-fragments")
+    (version "1.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jinja2_fragments" version))
+       (sha256
+        (base32 "0z98704fzz5xl54a95s3lii2wc8y5cz6zi3ajiij03wjxfshj877"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      ;; Framework integration tests that depend on too many packages.
+      #:tests? #f))
+    (native-inputs (list python-setuptools python-wheel))
+    (propagated-inputs (list python-jinja2))
+    (home-page "https://github.com/sponsfreixes/jinja2-fragments")
+    (synopsis "Jinja2 extension for template fragments")
+    (description
+     "Render Jinja2 template block as HTML page fragments on Python web frameworks.")
+    (license license:expat)))  ;; MIT
+
 (define-public python-pysdl2
   (package
     (name "python-pysdl2")

base-commit: 03a03ed64a62e23b9d3da8758dbf7754b186982f
-- 
2.41.0





                 reply	other threads:[~2024-02-28 11:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=266040ca8d6bdb38684823123995f119295618b5.1709119074.git.tanguy@bioneland.org \
    --to=tanguy@bioneland.org \
    --cc=69453@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    --cc=lars@6xq.net \
    --cc=marius@gnu.org \
    --cc=me@bonfacemunyoki.com \
    --cc=sharlatanus@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).