From c816bf49164fdddce686ca461ee5336a2cac7b33 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 10 May 2024 00:53:58 +0200 Subject: [PATCH] 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 --- 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 3f066f78a5..fe89f5eb0f 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")