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 @@ challenges.")
|
||||||
(name "python-imap-tools")
|
(name "python-imap-tools")
|
||||||
(version "1.6.0")
|
(version "1.6.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch) ; no tests in PyPI release
|
||||||
(uri (pypi-uri "imap-tools" version))
|
(uri (git-reference
|
||||||
(sha256
|
(url "https://github.com/ikvk/imap_tools")
|
||||||
(base32
|
(commit (string-append "v" version))))
|
||||||
"168nf1xbqbgqqrpqpvj6zbhdlllg34c0pm3mwz8ac62ylc37mj8z"))))
|
(file-name (git-file-name name version))
|
||||||
(build-system python-build-system)
|
(sha256
|
||||||
(arguments '(#:tests? #f)) ; tests require internet access
|
(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")
|
(home-page "https://github.com/ikvk/imap_tools")
|
||||||
(synopsis "Work with email and mailbox by IMAP")
|
(synopsis "Work with email and mailbox by IMAP")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue