M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +8 -14
@@ 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