emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#44359: closed ([PATCH 1/2] gnu: Add python-re-assert.)


From: GNU bug Tracking System
Subject: bug#44359: closed ([PATCH 1/2] gnu: Add python-re-assert.)
Date: Tue, 10 Nov 2020 20:39:02 +0000

Your message dated Tue, 10 Nov 2020 21:37:52 +0100
with message-id <87361hdk2n.fsf@gnu.org>
and subject line Re: [bug#44359] [PATCH 2/2] gnu: pre-commit: Update to 2.8.1.
has caused the debbugs.gnu.org bug report #44359,
regarding [PATCH 1/2] gnu: Add python-re-assert.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
44359: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44359
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH 1/2] gnu: Add python-re-assert. Date: Sat, 31 Oct 2020 17:03:43 -0300
* gnu/packages/python-check.scm (python-re-assert): New variable.
---
 gnu/packages/python-check.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 498f495584..944f226a41 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -436,6 +436,40 @@ in Pytest.")
 of the project to ensure it renders properly.")
     (license license:expat)))
 
+(define-public python-re-assert
+  (package
+    (name "python-re-assert")
+    (version "1.1.0")
+    (source
+     (origin
+       ;; There are no tests in the PyPI tarball.
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/asottile/re-assert";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1rssq4wpqmx1c17hjfx5l3sn3zmnlz9jffddiqrs4f6h7m6cadai"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "pytest" "-vv"))))))
+    (native-inputs
+     `(("python-covdefaults" ,python-covdefaults)
+       ("python-coverage" ,python-coverage)
+       ("python-pytest" ,python-pytest)))
+    (propagated-inputs
+     `(("python-regex" ,python-regex)))
+    (home-page "https://github.com/asottile/re-assert";)
+    (synopsis "Show where your regex match assertion failed")
+    (description
+     "@code{re-assert} provides a helper class to make assertions of regexes
+simpler.")
+    (license license:expat)))
+
 (define-public python-pytest-trio
   (package
     (name "python-pytest-trio")
-- 
2.29.1




--- End Message ---
--- Begin Message --- Subject: Re: [bug#44359] [PATCH 2/2] gnu: pre-commit: Update to 2.8.1. Date: Tue, 10 Nov 2020 21:37:52 +0100
Applied both patches, thanks!

[...]

Vinicius Monego <monego@posteo.net> writes:

> * gnu/packages/version-control.scm (pre-commit): Update to 2.8.1.
> [arguments]: Skip new dotnet and nodejs tests.
> [native-inputs]: Add python-re-assert.
> [inputs]: Propagate.

It would be clearer to make the inputs propagated in a separate commit,
but obviously not a strong opinion.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

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