~ruther/guix-local

02fcd10fdb403c4c165ead89f4ee51dc112d1d4b — Sharlatan Hellseher 5 months ago 4266422
gnu: python-glom: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-glom)[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Drop all.
[native-inputs]: Add python-setuptools.

Change-Id: I58d68a25f91af1cb12a6fdd5a3fb029177c48f06
1 files changed, 13 insertions(+), 17 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +13 -17
@@ 34444,26 34444,22 @@ command-line applications.
    (version "24.11.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "glom" version))
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/mahmoud/glom")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "09xv44h1sri9fc2sp2h3nqg8rba4p86vvimnyx5084m9b5kzj9a3"))))
    (build-system python-build-system)
    (arguments
     '(#:phases
       (modify-phases %standard-phases
         (replace 'check
           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
             (when tests?
               ;; Make installed executable available for running the tests.
               (setenv "PATH"
                       (string-append (assoc-ref outputs "out") "/bin"
                                      ":" (getenv "PATH")))
               (invoke "pytest" "-v")))))))
        (base32 "0vjj6wjxzms947nvbxrlz2cyn0m6483p1laqvcwr8fc117nzary0"))))
    (build-system pyproject-build-system)
    (native-inputs
     (list python-pytest python-pyyaml))
     (list python-pytest
           python-pyyaml
           python-setuptools))
    (propagated-inputs
     (list python-attrs python-boltons python-face))
     (list python-attrs
           python-boltons
           python-face))
    (home-page "https://github.com/mahmoud/glom")
    (synopsis "Declaratively restructure data")
    (description "Real applications have real data, and real data