guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit fa78a191216a6589d77d396b783ad59a7248a430
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Tue Jul 29 14:45:53 2025 +0100

    gnu: python-ukpostcodeparser: Update to 1.1.2.
    
    * gnu/packages/python-xyz.scm (python-ukpostcodeparser): Update to 1.1.2.
      [build-system]: Use pyproject.
      [arguments] <test-flags>: Move custom check flags here.
      <phases>: Use default 'check.
      [native-inputs]: Add python-setuptools.
    
    Change-Id: I7d5a6b84d105db716aef98ad4991afec7e41b1e1
---
 gnu/packages/python-xyz.scm | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7e04350306..51b0900418 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24045,22 +24045,22 @@ simple, lightweight implementation.")
               (sha256
                (base32
                 "03jkf1ygbwq3akzbcjyjk1akc1hv2sfgx90306pq1nwklbpn80lk"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (when tests?
-               ;; Tests for lowercase postcodes fail.
-               (invoke "pytest" "-vv" "ukpostcodeparser/test/parser.py" "-k"
-                       (string-append "not test_091 "
-                                      "and not test_097 "
-                                      "and not test_098 "
-                                      "and not test_125 "
-                                      "and not test_131"))))))))
-    (native-inputs
-     (list python-pytest))
+     (list
+      #:test-flags
+      #~(list
+         ;; Tests for lowercase postcodes fail.
+         "-k" (string-join
+               (list "not test_091 "
+                     "test_097 "
+                     "test_098 "
+                     "test_125 "
+                     "test_131")
+               " and not ")
+         "ukpostcodeparser/test/parser.py")))
+    (native-inputs
+     (list python-pytest python-setuptools))
     (home-page "https://github.com/hamstah/ukpostcodeparser";)
     (synopsis "UK Postcode parser for Python")
     (description

Reply via email to