guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#57094] [PATCH 3/9] gnu: Add python-curlylint.


From: Nicolas Graves
Subject: [bug#57094] [PATCH 3/9] gnu: Add python-curlylint.
Date: Wed, 10 Aug 2022 00:43:27 +0200

* gnu/packages/python-web.scm (python-curlylint): New variable.
---
 gnu/packages/python-web.scm | 38 +++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 7c5e5651c8..0c02c4f889 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -550,6 +550,44 @@ (define-public python-css-html-js-minify
     ;; looks like the user can choose a license.
     (license (list license:gpl3+ license:lgpl3+ license:expat))))
 
+(define-public python-curlylint
+  (package
+    (name "python-curlylint")
+    (version "0.13.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "curlylint" version))
+       (sha256
+        (base32
+         "0li72vig9ibrdfazvaprfawrq84ylg00byrfq554081r1wb9v2q0"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (delete 'sanity-check)
+         (replace 'check
+           (lambda* (#:key tests? inputs #:allow-other-keys)
+             (if tests?
+                 (lambda _
+                   (substitute* "setup.py"
+                     (("parsy==1.1.0") "parsy>=1.1.0"))
+                   (invoke "pytest" "-vv"))
+                 (format #t "test suite not run~%")))))))
+    (propagated-inputs (list python-attrs
+                             python-click
+                             python-dataclasses
+                             python-parsy
+                             python-pathspec
+                             python-toml))
+    (home-page "https://github.com/thibaudcolas/curlylint";)
+    (synopsis
+     "Experimental HTML templates linting")
+    (description
+     "This package provides experimental HTML templates linting for Jinja,
+Nunjucks, Django templates, Twig and Liquid.")
+    (license license:expat)))
+
 (define-public python-aws-sam-translator
   (package
     (name "python-aws-sam-translator")
-- 
2.37.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]