~ruther/guix-local

64fd3e51b6c7c73e41982c262f47390a84860a77 — Nicolas Graves 2 months ago 53d0957
gnu: python-feedparser: Switch to pyproject.

* gnu/packages/web.scm (python-feedparser):
[build-system]: Switch to pyproject-build-system.
[arguments]: Replace <#:phases> with <#:test-backend, #:test-flags>.
[native-inputs]: Add python-setuptools.

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

M gnu/packages/web.scm
M gnu/packages/web.scm => gnu/packages/web.scm +6 -10
@@ 5512,17 5512,13 @@ Integration Center (4DN-DCIC).")
       (sha256
        (base32 "1mc4856draxac5s7acywq060a0awng195cpbs1js1wn6cixl1l69"))
       (patches (search-patches "python-feedparser-missing-import.patch"))))
    (build-system python-build-system)
    (propagated-inputs
     (list python-sgmllib3k))
    (build-system pyproject-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 "python" "tests/runtests.py")))))))
     (list
      #:test-backend #~'custom
      #:test-flags #~(list "tests/runtests.py")))
    (native-inputs (list python-setuptools))
    (propagated-inputs (list python-sgmllib3k))
    (home-page "https://github.com/kurtmckee/feedparser")
    (synopsis "Parse feeds in Python")
    (description