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

commit d7817735b259708591cf3696b2286b7872d9b5c4
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Apr 4 21:17:05 2025 +0200

    gnu: python-port-for: Update to 0.7.4.
    
    * gnu/packages/python-web.scm (python-port-for): Update to 0.7.4.
    [build-system]: Switch to pyproject.
    [native-inputs]: Remove python-mock.  Add python-setuptools,
    python-wheel.
    
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-web.scm | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 9b4a5955d8..a8fe9e1a73 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -7736,26 +7736,18 @@ without requiring a page refresh.")
 (define-public python-port-for
   (package
     (name "python-port-for")
-    (version "0.4")
+    (version "0.7.4")
     (source
      (origin
        (method url-fetch)
-       (uri (pypi-uri "port-for" version))
+       (uri (pypi-uri "port_for" version))
        (sha256
-        (base32
-         "1pncxlj25ggw99r0ijfbkq70gd7cbhqdx5ivsxy4jdp0z14cpda7"))))
-    (build-system python-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'use-urllib3
-           (lambda _
-             (substitute* "port_for/_download_ranges.py"
-               (("urllib2") "urllib3")))))))
+        (base32 "13826s2d4hzzmv69wws6a7ryhminclv2bqaw6cpl929gnbki6xzw"))))
+    (build-system pyproject-build-system)
     (propagated-inputs
      (list python-urllib3))
     (native-inputs
-     (list python-mock))
+     (list python-pytest python-setuptools python-wheel))
     (home-page "https://github.com/kmike/port-for/";)
     (synopsis "TCP localhost port finder and association manager")
     (description

Reply via email to