From cbe28b9077b8594ad3965e7b9af13b608639d783 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 12 Oct 2025 21:52:09 +0200 Subject: [PATCH] gnu: python-proto-matcher: Switch to pyproject. * gnu/packages/python-xyz.scm (python-proto-matcher): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. [arguments, propagated-inputs, description]: Run guix style. --- gnu/packages/python-xyz.scm | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 3403a1fb73ad36d88af467b10fbc6e7204415196..eb1709cd59f7b2a797010a06183a70bd1fd6c955 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11397,19 +11397,22 @@ properties for Python 3.9+.") (version "0.0.3") (source (origin - (method url-fetch) - (uri (pypi-uri "proto_matcher" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/dayfine/proto-matcher") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "1644x0hrl398ji3281n44ymfgc3cspzfagjckhqjn4nja5nlikxg")))) - (build-system python-build-system) - (arguments - `(#:tests? #f)) ;no test suite - (propagated-inputs - (list python-protobuf python-pyhamcrest)) + (base32 "1l0dqnicpk4gpfspdlng026sxnkgzy68x416aw7camwq0513mq5l")))) + (build-system pyproject-build-system) + (native-inputs (list python-pytest python-setuptools)) + (arguments (list #:tests? #f)) ; The test suite seems broken (missing data). + (propagated-inputs (list python-protobuf python-pyhamcrest)) (home-page "https://github.com/dayfine/proto-matcher") (synopsis "PyHamcrest test matchers for protocol buffers") - (description "This package provides the following PyHamcrest test -matchers, that enable matching a protocol buffer message: + (description + "This package provides the following PyHamcrest test matchers, that +enable matching a protocol buffer message: @table @code @item equals_proto Test the argument equals the given protobuf message.