~ruther/guix-local

9a69e95c6695f00939d2abcb45177d11fede2efc — Nicolas Graves 5 months ago 1e7d4bb
gnu: python-helpdev: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-helpdev):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Remove them.
[propagated-inputs]: Remove python-importlib-metadata.
[native-inputs]: Add python-pip, python-setuptools.

Change-Id: I5c932169e0423e7c63d36d858c6ead2fe69d5bac
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 11 insertions(+), 22 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +11 -22
@@ 31660,29 31660,18 @@ distribution in Python.")
    (name "python-helpdev")
    (version "0.7.1")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "helpdev" version))
        (sha256
         (base32
          "0gfvj28i82va7c264jl2p4cdsl3lpf9fpb9cyjnis55crfdafqmv"))))
    (build-system python-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (replace 'check
           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
             (when tests?
               (add-installed-pythonpath inputs outputs)
               (invoke "pytest" "tests"))
             #t)))))
    (propagated-inputs
     (list python-importlib-metadata))
    (native-inputs
     (list python-pytest))
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://gitlab.com/dpizetta/helpdev")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0mzf0sdgxzn3x56qxgi6kbsx3cydl8h0bdpyn4xyfkw6pyi9g2bd"))))
    (build-system pyproject-build-system)
    (native-inputs (list python-pip python-pytest python-setuptools))
    (home-page "https://gitlab.com/dpizetta/helpdev")
    (synopsis
     "Extract information about the Python environment easily")
    (synopsis "Extract information about the Python environment easily")
    (description
     "Helpdev is a library to easily extract information about the Python
environment.")