[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55475] [PATCH 05/18] gnu: Add python-jinjalint.
From: |
Nicolas Graves |
Subject: |
[bug#55475] [PATCH 05/18] gnu: Add python-jinjalint. |
Date: |
Tue, 17 May 2022 09:54:35 +0200 |
* gnu/packages/python-xyz.scm (python-jinjalint): New variable.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 29b42ea3a0..5d6a60c771 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4272,6 +4272,37 @@ (define-public python-jinja2-time
templates. A format string can be provided to control the output.")
(license license:expat)))
+(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 python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'lift-requirements
+ (lambda _
+ (substitute* "requirements.txt"
+ (("parsy==1.1.0.*") "parsy\n")
+ (("attrs==17.2.*") "attrs\n")
+ (("docopt==0.6.2.*") "docopt\n"))))
+ (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 "A linter for Jinja-like templates")
+ (description "This package provides a linter for Jinja-like templates.")
+ (license license:expat)))
+
(define-public python-pystache
(package
(name "python-pystache")
--
2.36.0
- [bug#55474] [PATCH 01/18] gnu: python-django-taggit: Update to 2.1.0., Nicolas Graves, 2022/05/17
- [bug#55473] [PATCH 02/18] gnu: python-django-filter: Update to 21.1., Nicolas Graves, 2022/05/17
- [bug#55475] [PATCH 05/18] gnu: Add python-jinjalint.,
Nicolas Graves <=
- [bug#55476] [PATCH 03/18] gnu: Add python-django-modelcluster., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 08/18] gnu: Add python-django-request., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 09/18] gnu: Add python-django-environ., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 10/18] gnu: Add python-psycopg2-2.8., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 11/18] gnu: Add python-beautifulsoup4-4.8., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 06/18] gnu: Add python-flake8-blind-except., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 14/18] gnu: Add python-parsy., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 16/18] gnu: Add python-telepath., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 17/18] gnu: Add python-wagtail., Nicolas Graves, 2022/05/17
- [bug#55474] [PATCH 15/18] gnu: Add python-anyascii., Nicolas Graves, 2022/05/17