[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55474] [PATCH v3 05/17] gnu: Add python-jinjalint.
From: |
Nicolas Graves |
Subject: |
[bug#55474] [PATCH v3 05/17] gnu: Add python-jinjalint. |
Date: |
Mon, 17 Apr 2023 16:53:25 +0200 |
* gnu/packages/python-xyz.scm (python-jinjalint): New variable.
---
gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 01480be482..e6164da5c7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4750,6 +4750,38 @@ (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 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 "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.39.2
- [bug#55474] [PATCH v3 01/17] gnu: python-django-taggit: Update to 3.1.0., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 02/17] gnu: python-django-filter: Update to 22.1., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 04/17] gnu: Add python-django-treebeard., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 05/17] gnu: Add python-jinjalint.,
Nicolas Graves <=
- [bug#55474] [PATCH v3 03/17] gnu: Add python-django-modelcluster., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 06/17] gnu: Add python-willow., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 08/17] gnu: Add python-django-environ., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 10/17] gnu: Add python-l18n., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 07/17] gnu: Add python-django-request., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 09/17] gnu: Add python-draftjs-exporter., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 12/17] gnu: Add python-anyascii., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 11/17] gnu: Add python-parsy., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 13/17] gnu: Add python-telepath., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 14/17] gnu: Add python-django-permissionedforms., Nicolas Graves, 2023/04/17