guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

193/474: gnu: python-apprise: Improve package style.


From: guix-commits
Subject: 193/474: gnu: python-apprise: Improve package style.
Date: Sat, 30 Nov 2024 18:20:18 -0500 (EST)

sharlatan pushed a commit to branch python-team
in repository guix.

commit a35a27326dac2509623f70f9c8e711162ce183ae
Author: Nicolas Graves <ngraves@ngraves.fr>
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 <mail@nicolasgoaziou.fr>
---
 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 58ba7875f4..c12f4b6f92 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]