diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-04-24 10:12:33 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-04-24 10:12:33 +0100 |
commit | e2ba93373a29ddf5d5754368957e89f3b426bb0a (patch) | |
tree | 340130077b0bad71e97a787e5ae2316ece556e98 /gnu | |
parent | 79c813d416da357d852c9b2859c9cee446a7294b (diff) | |
download | guix-e2ba93373a29ddf5d5754368957e89f3b426bb0a.tar.gz guix-e2ba93373a29ddf5d5754368957e89f3b426bb0a.zip |
gnu: python-imap-tools: Enable tests.
* gnu/packages/python-web.scm (python-imap-tools): Enable tests.
[source]: Swap to git checkout containing tests.
[arguments] <#:test-flags>: Exclude tests requiring network connection.
[native-inputs]: Add python-pytest.
Change-Id: I6173f93307d371952beeef9dbbc8c237023d265b
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-web.scm | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 09ef888ed9..c89856f296 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7429,14 +7429,27 @@ challenges.") (name "python-imap-tools") (version "1.6.0") (source - (origin - (method url-fetch) - (uri (pypi-uri "imap-tools" version)) - (sha256 - (base32 - "168nf1xbqbgqqrpqpvj6zbhdlllg34c0pm3mwz8ac62ylc37mj8z")))) - (build-system python-build-system) - (arguments '(#:tests? #f)) ; tests require internet access + (origin + (method git-fetch) ; no tests in PyPI release + (uri (git-reference + (url "https://github.com/ikvk/imap_tools") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0w4x5l5w7rz1mrmbbjbfqbf3f5p89wi2fw245yvg8k98zgy012sg")))) + (arguments + (list + #:test-flags + ;; Tests require a network connection + #~(list "-k" (string-append "not test_action" + " and not test_attributes" + " and not test_connection" + " and not test_folders" + " and not test_idle" + " and not test_live")))) + (build-system pyproject-build-system) + (native-inputs + (list python-pytest)) (home-page "https://github.com/ikvk/imap_tools") (synopsis "Work with email and mailbox by IMAP") (description |