From 7d9b41002aadd2d4d3b3bf198d6bc4de51002613 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 1 Jul 2025 13:56:08 +0100 Subject: gnu: python-miniupnpc: Update to 2.3.3. * gnu/packages/python-xyz.scm (python-miniupnpc): Update to 2.3.3. [build-system]: Use pyproject. [arguments] : Add custrom 'check. [native-inputs]: Add python-setuptools, and python-wheel. Change-Id: I61caaa1ae01fe8e00e13397cb307d7aee3b3332f --- gnu/packages/python-xyz.scm | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2aa9902a724..76c874fdf9e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6666,12 +6666,14 @@ palettes.") (define-public python-miniupnpc (package (name "python-miniupnpc") - (version "2.2.3") + (version "2.3.3") (source (origin (method git-fetch) (uri (git-reference + ;; The project tags miniupnpd_ as well but with a different version, + ;; where updater may select a wrong version. (url "https://github.com/miniupnp/miniupnp") (commit (string-append @@ -6679,8 +6681,8 @@ palettes.") (file-name (git-file-name name version)) (sha256 - (base32 "03q1rlzvfzm15g1bfw2zqzavlsyaypnaf2k3cz6ha7k5rirkdy0l")))) - (build-system python-build-system) + (base32 "0ysvx21iaq7f505fpnk3280rwnckr0aih0j5j3v82nv99a2rqigh")))) + (build-system pyproject-build-system) (arguments (list #:phases @@ -6696,7 +6698,14 @@ palettes.") (lambda _ (substitute* "miniupnpc/updateminiupnpcstrings.sh" - (("^OS_VERSION=`uname -r`") "OS_VERSION=Guix"))))))) + (("^OS_VERSION=`uname -r`") "OS_VERSION=Guix")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "check"))))))) + (native-inputs + (list python-setuptools + python-wheel)) (inputs (list python)) ;we are building a Python extension (synopsis "UPnP client for Python") (description "Miniupnpc is a client library for Python programs to set up -- cgit v1.3