[PATCH] gnu: Add python-jinja2-fragments.

  • Open
  • quality assurance status badge
Details
One participant
  • Tanguy Le Carrour
Owner
unassigned
Submitted by
Tanguy Le Carrour
Severity
normal

Debbugs page

T
T
Tanguy Le Carrour wrote on 28 Feb 03:20 -0800
(address . guix-patches@gnu.org)(name . Tanguy Le Carrour)(address . tanguy@bioneland.org)
266040ca8d6bdb38684823123995f119295618b5.1709119074.git.tanguy@bioneland.org
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(+)

Toggle diff (38 lines)
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
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 69453@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 69453
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch