(address . guix-patches@gnu.org)(name . Tanguy Le Carrour)(address . 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