From 64fd3e51b6c7c73e41982c262f47390a84860a77 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 20 Dec 2025 18:11:44 +0100 Subject: [PATCH] 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 --- gnu/packages/web.scm | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index a41665f1692e5e0c3ce2da5fc71976e19148fa3b..fb13fa5f5edd00c55b00476b9c35f7a7d528d974 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -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