guix_mirror_bot pushed a commit to branch master
in repository guix.

commit f2cea4e74c70994784fca19c975aa7da86a5d130
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Oct 22 23:42:45 2025 +0200

    gnu: python-anyqt: Update to 0.2.1.
    
    * gnu/packages/python-xyz.scm (python-anyqt): Update to 0.2.1.
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]: Improve style.
    [native-inputs]: Add python-pytest-qt, python-setuptools.
    [synopsis, description]: Improve them.
    
    Change-Id: I26078ec701a239c232c7945e1c6ebf2965170c8a
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 41 ++++++++++++++++++++++++++---------------
 1 file changed, 26 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9cb7e5cae6..f9b8c4275c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21422,26 +21422,37 @@ ISO 8859, etc.).")
 (define-public python-anyqt
   (package
     (name "python-anyqt")
-    (version "0.2.0")
+    (version "0.2.1")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "AnyQt" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ales-erjavec/anyqt";)
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "0fvnhdk0nzhlm1xydisvdq1w7lwaakdkbwb1rkyz4vd232wji4jb"))))
-    (build-system python-build-system)
+        (base32 "0dci4sx53icd3jxv5gm22yr5g4dcyqbyvkkwliqpmbkxxjxj0dc8"))))
+    (build-system pyproject-build-system)
     (arguments
-     `(#:tests? #f ;there are no tests
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'delete-files
-           ;; Delete files related to other operating systems.
-           (lambda _
-             (delete-file "AnyQt/QtMacExtras.py")
-             (delete-file "AnyQt/QtWinExtras.py"))))))
+     (list
+      ;; XXX: Qt tests require Qt modules, see test/test_import.py.
+      ;; TODO Add/configure the right Qt inputs.
+      #:test-flags
+      #~(list "--ignore-glob=tests/test_q*.py")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'delete-files
+            ;; Delete files related to other operating systems.
+            (lambda _
+              (delete-file "AnyQt/QtMacExtras.py")
+              (delete-file "AnyQt/QtWinExtras.py"))))))
+    (native-inputs (list python-pytest-qt python-setuptools))
     (home-page "https://github.com/ales-erjavec/anyqt";)
-    (synopsis "PyQt4/PyQt5 compatibility layer")
-    (description "AnyQt is a PyQt4/PyQt5 compatibility layer.")
+    (synopsis "PyQt compatibility layer")
+    (description
+     "This package provides a PyQt/PySide compatibility layer. More precisely,
+it provides compatibility for the following modules: PyQt4, PyQt5, PyQt6,
+PySide, PySide2.")
     (license license:gpl3)))
 
 (define-public python-qasync

Reply via email to