sharlatan pushed a commit to branch python-team
in repository guix.
commit 86b0bd7bd468c3d4d4b928a9e65b11b2b22f6da8
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri May 10 00:53:58 2024 +0200
gnu: python-apprise: Improve package style.
* gnu/packages/python-xyz.scm (python-apprise):
[arguments]: Convert <#:phases> check replacement into
<#:test-flags>.
Change-Id: I85c2ebadf65a4f1a7735042e784e56313c3de539
Signed-off-by: Nicolas Goaziou <[email protected]>
---
gnu/packages/python-xyz.scm | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 691553664d..0d20e076f7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -320,6 +320,13 @@
(sha256
(base32 "0wvs1k71fipn617y9wsdcvwcgg2pd0nvriarlwl4438la4086ppg"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "--numprocesses" "auto"
+ "--ignore=test/test_plugin_macosx.py"
+ "-k" (string-append "not test_plugin_mqtt_tls_connect_success"
+ " and not
test_plugin_mqtt_tls_no_verify_success"))))
(propagated-inputs (list python-certifi
python-click
python-dataclasses
@@ -336,18 +343,6 @@
python-pytest-mock
python-pytest-xdist
python-wheel))
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? inputs outputs #:allow-other-keys)
- (when tests?
- (delete-file "test/test_plugin_macosx.py")
- (invoke "pytest" "-vv" "-k"
- (string-append
- "not test_plugin_mqtt_tls_connect_success"
- " and not
test_plugin_mqtt_tls_no_verify_success"))))))))
(home-page "https://github.com/caronc/apprise")
(synopsis
"Push notification Python library that works with many platforms")