From adce9d90e3e3dd6a72ccdfdc73a41ea7560fa07b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 15 Sep 2025 22:02:04 +0100 Subject: [PATCH] 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 c7bb19d1ec5ac65b778de28917b793c05f0b9ef4..26ba36a133833e3ad0e0c4aa42f968c3db5f140f 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -3448,25 +3448,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,