This is an automated email from the git hooks/post-receive script.
guix_mirror_bot pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 7ec5abb669 gnu: rss2email: Switch to pyproject-build-system.
7ec5abb669 is described below
commit 7ec5abb669f4771dce2e16361b6a5770a1ed73cc
Author: Nguyễn Gia Phong <[email protected]>
AuthorDate: Wed Dec 17 11:11:37 2025 +0900
gnu: rss2email: Switch to pyproject-build-system.
* gnu/packages/mail.scm (rss2email):
[build-system]: Change to pyproject-build-system.
[arguments] <build-backend>: Use "poetry.core".
<test-backend, test-flags>: Use "unittest".
<phases>: Add 'fix-tests; use default 'check.
[native-inputs]: Add python-poetry-core.
Change-Id: I0c6d8cece6894b93622ccd429635f2934a98d156
Modified-by: Sharlatan Hellseher <[email protected]>
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/mail.scm | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 0177a96de6..2200e76acd 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -5061,27 +5061,27 @@ means--it's all programmable).")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32
- "0rmcwvf8whf49qq5rgp5hhmhfjli1vhjlc7fjhj24gyy1kkjir2k"))))
- (build-system python-build-system)
+ (base32
"0rmcwvf8whf49qq5rgp5hhmhfjli1vhjlc7fjhj24gyy1kkjir2k"))))
+ (build-system pyproject-build-system)
(arguments
(list
+ #:build-backend "poetry.core.masonry.api"
+ #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "test")
#:phases
#~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (with-directory-excursion "test"
- ;; Skip networking tests
- (substitute* "test.py"
- (("( *)class (:?TestSend|TestFetch).*" match indent)
- (string-append indent
- "@unittest.skip(\"Networking stuff
skipped\")\n"
- indent match)))
- (invoke "python" "-m" "unittest")))))
+ (add-after 'unpack 'fix-tests
+ (lambda _
+ ;; Skip networking tests
+ (substitute* "test/test.py"
+ (("( *)class (:?TestSend|TestFetch).*" match indent)
+ (string-append indent
+ "@unittest.skip(\"Networking stuff
skipped\")\n"
+ indent match)))))
(add-after 'install 'install-documentation
(lambda _
(install-file "r2e.1" (string-append #$output
"share/man/man1")))))))
+ (native-inputs (list python-poetry-core))
(inputs
(list python-feedparser python-html2text))
(home-page "https://github.com/rss2email/rss2email")