~ruther/guix-local

45319553a48fa28206d96238f622363cd578c0e4 — Nicolas Graves 5 months ago e7c41be
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 <sharlatanus@gmail.com>
1 files changed, 8 insertions(+), 14 deletions(-)

M gnu/packages/python-xyz.scm
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