guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 45319553a48fa28206d96238f622363cd578c0e4
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Oct 17 14:53:48 2025 +0200

    gnu: python-importmagic: Switch to pyproject.
    
    * gnu/packages/python-xyz.scm (python-importmagic):
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [native-inputs]: Add python-setuptools.
    
    Change-Id: If5c283290924d9206d5052bc4e59fe4feebe9086
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 22 ++++++++--------------
 1 file changed, 8 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 89933635e4..d4718f0f94 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13947,21 +13947,15 @@ need to use the older and less efficient 
@code{pkg_resources} package.")
     (version "0.1.7")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "importmagic" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/alecthomas/importmagic";)
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32
-         "1n7qxa1snj06aw45mcfz7bxc46zp7fxj687140g2k6jcnyjmfxrz"))))
-    (build-system python-build-system)
-    (arguments
-     (list #:phases
-           #~(modify-phases %standard-phases
-               (replace 'check
-                 (lambda* (#:key tests? #:allow-other-keys)
-                   (when tests?
-                     (invoke "pytest" "-v")))))))
-    (native-inputs
-     (list python-pytest))
+        (base32 "1asijinpirq9ips9drsibyg2bj6qbpryz27n91akhvmzn78pbz7s"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-pytest python-setuptools))
     (home-page "https://github.com/alecthomas/importmagic";)
     (synopsis "Library for adding, removing and managing Python imports")
     (description

Reply via email to