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

commit 97567d40624808c96275aadcbba8cf0535219618
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Sep 15 22:02:04 2025 +0100

    gnu: python-pyhamcrest: Update to 2.1.0.
    
    * gnu/packages/check.scm (python-pyhamcrest): Update to 2.1.0.
    [source]: Switch to url-fetch, PyPI contains tests.
    [build-system]: Switch to pyproject-build-system.
    [native-inputs]: Remove python-pytest-cov, python-mock, python-pytest,
    and python-hypothesis; add python-hatch-vcs, python-hatchling, and
    python-pytest-bootstrap.
    
    Change-Id: Icda80f0a54a5b043d887993056bce3667cd4ecec
---
 gnu/packages/check.scm | 31 ++++++++++++-------------------
 1 file changed, 12 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index b3a793f8e2..176db68c33 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3264,25 +3264,18 @@ retried.")
 (define-public python-pyhamcrest
   (package
     (name "python-pyhamcrest")
-    (version "2.0.3")
-    (source (origin
-              (method git-fetch)        ;no tests in PyPI archive
-              (uri (git-reference
-                    (url "https://github.com/hamcrest/PyHamcrest";)
-                    (commit (string-append "V" version))))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "0j0fpd7vw700l6gx29gz9j28d22ajkz6sngfzp4c8an4ibd2fw85"))))
-    (native-inputs                      ;all native inputs are for tests
-     (list python-pytest-cov python-mock python-pytest python-hypothesis))
-    (build-system python-build-system)
-    (arguments
-     `(#:phases (modify-phases %standard-phases
-                  (replace 'check
-                    (lambda* (#:key inputs outputs #:allow-other-keys)
-                      (add-installed-pythonpath inputs outputs)
-                      (invoke "pytest" "-vv"))))))
+    (version "2.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pyhamcrest" version))
+       (sha256
+        (base32 "175xfp4zgjmsxac79z39in77pjg7yck1kbr25kkvf31xjb0bxb66"))))
+    (build-system pyproject-build-system)
+    (native-inputs
+     (list python-hatch-vcs
+           python-hatchling
+           python-pytest-bootstrap))
     (home-page "https://hamcrest.org/";)
     (synopsis "Hamcrest matchers for Python")
     (description "PyHamcrest is a framework for writing matcher objects,

Reply via email to