From c7a2955b74b76a34ff2ad9c6cb094637cf1f9206 Mon Sep 17 00:00:00 2001 From: Rodion Goritskov Date: Sun, 28 Sep 2025 17:01:16 +0200 Subject: [PATCH] gnu: python-aiosmtpd: Fix tests. * gnu/packages/mail.scm (python-aiosmtpd): Fix tests. [version]: Build from commit 98f578389ae86e5345cc343fa4e5a17b21d9c96d. [native-inputs]: Remove python-pytest-asyncio, python-wheel. [propagated-inputs]: Add python-attrs. Change-Id: I75f7eaf6eef178ca78361b45ce36c116a7341b02 Reviewed-by: Nicolas Graves Signed-off-by: Sharlatan Hellseher --- gnu/packages/mail.scm | 64 ++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index faeaeb70e2e281907e8c42b3a91a732d1c3da16f..af4f372c90d5761b248e495d37adea74212ab28f 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -4760,38 +4760,40 @@ DKIM and ARC sign messages and output the corresponding signature headers.") (license (list license:zpl2.1 license:zlib license:mpl2.0)))) (define-public python-aiosmtpd - (package - (name "python-aiosmtpd") - (version "1.4.6") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/aio-libs/aiosmtpd") - (commit (string-append "v" version)))) - (sha256 - (base32 "0b5y94zc8pq75sjwsifblzgjnliyclkwypi68b2zffrxcdnz27r2")) - (file-name (git-file-name name version)))) - (build-system pyproject-build-system) - (arguments - ;; This QA test requires git. - (list #:test-flags ''("-k" "not test_ge_master"))) - (native-inputs - (list python-pytest - python-pytest-asyncio - python-pytest-cov - python-pytest-mock - python-setuptools - python-wheel)) - (propagated-inputs - (list python-atpublic)) - (home-page "https://aiosmtpd.readthedocs.io/") - (synopsis "Asyncio based SMTP server") - (description - "This project is a reimplementation of the Python stdlib @code{smtpd.py} + ;; Tests run fixed on not yet released version. + (let ((commit "98f578389ae86e5345cc343fa4e5a17b21d9c96d") + (revision "0")) + (package + (name "python-aiosmtpd") + (version (git-version "1.4.6" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aio-libs/aiosmtpd") + (commit commit))) + (sha256 + (base32 "1pmvlzxfcqjplvn2bzi9jd3m3941ff7nlgxxfwc7pzhmazlkqf8z")) + (file-name (git-file-name name version)))) + (build-system pyproject-build-system) + (arguments + ;; This QA test requires git. + (list #:test-flags ''("-k" "not test_ge_master"))) + (native-inputs + (list python-pytest + python-pytest-cov + python-pytest-mock + python-setuptools)) + (propagated-inputs + (list python-atpublic + python-attrs)) + (home-page "https://aiosmtpd.readthedocs.io/") + (synopsis "Asyncio based SMTP server") + (description + "This project is a reimplementation of the Python stdlib @code{smtpd.py} based on asyncio.") - (license (list license:asl2.0 - license:lgpl3)))) ; only for setup_helpers.py + (license (list license:asl2.0 + license:lgpl3))))) ; only for setup_helpers.py (define-public python-imaplib2 (package