mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 06:37:08 +01:00
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
This commit is contained in:
parent
79c813d416
commit
e2ba93373a
1 changed files with 21 additions and 8 deletions
|
@ -7429,14 +7429,27 @@ (define-public python-imap-tools
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue