From 45319553a48fa28206d96238f622363cd578c0e4 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 17 Oct 2025 14:53:48 +0200 Subject: [PATCH] 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 --- 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 89933635e43f384b5dff42858cf6ceb25243dda0..d4718f0f94d5b57647d02b0f62b039bbcd786a93 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