[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65758] [PATCH v7 42/57] gnu: Add python-jinjalint.
From: |
Nicolas Graves |
Subject: |
[bug#65758] [PATCH v7 42/57] gnu: Add python-jinjalint. |
Date: |
Wed, 6 Sep 2023 11:16:06 +0200 |
* gnu/packages/python-xyz.scm (python-jinjalint): New variable.
---
gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 32666281c8..b40f711d72 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5549,6 +5549,45 @@ (define-public python-pysdl2
common SDL2 functionality.")
(license license:cc0)))
+(define-public python-jinjalint
+ (package
+ (name "python-jinjalint")
+ (version "0.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "jinjalint" version))
+ (sha256
+ (base32 "09qqqi6iggr64zms9j9sgfq9v5samvsqyyqk0s1y4gfjy6lf9424"))))
+ (build-system pyproject-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-build
+ (lambda _
+ ;; Lift requirements.
+ (substitute* "requirements.txt"
+ (("parsy==1.1.0.*") "parsy\n")
+ (("attrs==17.2.*") "attrs\n")
+ (("docopt==0.6.2.*") "docopt\n"))
+ ;; Python 3.10 support.
+ (substitute* "jinjalint/util.py"
+ (("import collections")
+ "from collections.abc import Iterable")
+ (("collections\\.Iterable")
+ "Iterable"))))
+ (replace 'check
+ (lambda* (#:key tests? inputs #:allow-other-keys)
+ (if tests?
+ (invoke "python3" "-m" "jinjalint" "jinjalint/test.py")
+ (format #t "test suite not run~%")))))))
+ (propagated-inputs (list python-attrs python-docopt python-parsy))
+ (home-page "https://github.com/motet-a/jinjalint")
+ (synopsis "Linter for Jinja-like templates")
+ (description "This package provides @code{jinjalint} a linter for
+Jinja-like templates in Python.")
+ (license license:expat)))
+
(define-public python-pystache
(package
(name "python-pystache")
--
2.41.0
- [bug#65758] [PATCH v7 31/57] gnu: python-django-haystack: Update to 3.2.1., (continued)
- [bug#65758] [PATCH v7 31/57] gnu: python-django-haystack: Update to 3.2.1., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 11/57] gnu: python-django-filter: Add native-input tzdata-for-tests., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 20/57] gnu: python-dango-rq: Add native-input tzdata-for-tests., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 22/57] gnu: python-django-tagging: Add patch for django@4 support., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 09/57] gnu: python-django-simple-math-captcha: Update to 1.0.9-0-61adb4f., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 24/57] gnu: python-defusedxml: Update to 0.7.0., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 23/57] gnu: python-django-sortedm2m: Update to 3.1.1-0-ddf321f., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 34/57] gnu: postorius: Update to 1.3.7., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 25/57] gnu: python-filetype: Update to 1.0.10., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 38/57] gnu: python-django-filter: Update to 22.1., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 42/57] gnu: Add python-jinjalint.,
Nicolas Graves <=
- [bug#65758] [PATCH v7 37/57] gnu: python-django-taggit: Update to 3.1.0., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 39/57] gnu: Add python-django-modelcluster., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 43/57] gnu: Add python-willow., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 44/57] gnu: Add python-django-request., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 49/57] gnu: Add python-telepath., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 46/57] gnu: Add python-draftjs-exporter., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 51/57] gnu: python-openpyxl: Update to 3.1.2., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 48/57] gnu: Add python-anyascii., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 52/57] gnu: Add python-wagtail., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 14/57] gnu: python-django-picklefield: Update to 3.1.0., Nicolas Graves, 2023/09/06