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

commit 72d7fae5b6a812104d7c4ad07a59f40b32fc13f3
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sat Aug 9 08:28:35 2025 +0100

    gnu: python-pyxdg: Update to 0.28.
    
    * gnu/packages/freedesktop.scm (python-pyxdg): Update to 0.28.
      [build-system]: Use pypproject.
      [arguments] <test-flags>: Skip 2 tests with Pytest "--deselect" option.
      <phases>: Use default 'check; add 'pre-check.
      [native-inputs]: Remove python-nose; add python-pytest and
      python-setuptools.
    
    Change-Id: Ic870ffa65d992e985563d832c9464aade3a27f82
---
 gnu/packages/freedesktop.scm | 45 +++++++++++++++++++-------------------------
 1 file changed, 19 insertions(+), 26 deletions(-)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 6776f61122..a586d77fa0 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -1456,40 +1456,33 @@ For information about libevdev, see:
 (define-public python-pyxdg
   (package
     (name "python-pyxdg")
-    (version "0.27")
+    (version "0.28")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pyxdg" version))
        (sha256
         (base32
-         "19f5j5mxp7ff0vp33s32qbpdi65iiwha0bj641gl70pdwnm97gc0"))))
-    (build-system python-build-system)
+         "1d48bqwkbnpid80cpwz6h62i112laxl0ivpj58hdyd79fhqbnrrj"))))
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key inputs #:allow-other-keys)
-             (setenv "XDG_DATA_DIRS"
-                     (string-append (assoc-ref inputs "shared-mime-info")
-                                    "/share/"))
-             (substitute* "test/test-icon.py"
-               (("/usr/share/icons/hicolor/index.theme")
-                (string-append (assoc-ref inputs "hicolor-icon-theme")
-                               "/share/icons/hicolor/index.theme")))
-
-             ;; These two tests are known to fail in strange ways.
-             (substitute* "test/test-mime.py"
-               (("def test_get_type\\(self") "def _test_get_type(self")
-               (("def test_get_type2\\(self") "def _test_get_type2(self"))
-
-             ;; There are test files not shipped in the release tarball
-             (substitute* "test/test-icon.py"
-               (("def test_validate_icon_theme") "def 
_test_validate_icon_theme"))
-             (invoke "nosetests" "-v"))))))
+     (list
+      #:test-flags
+      ;; Tests failing with error: AssertionError: 'image' != 'inode'
+      #~(list "--deselect=test/test_mime.py::MimeTest::test_get_type"
+              "--deselect=test/test_mime.py::MimeTest::test_get_type2")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'pre-check
+            (lambda _
+              (setenv "XDG_DATA_DIRS"
+                      (string-append #$(this-package-native-input 
"shared-mime-info")
+                                     "/share/")))))))
     (native-inputs
-     ;; For tests.
-     (list shared-mime-info hicolor-icon-theme python-nose))
+     (list shared-mime-info
+           hicolor-icon-theme
+           python-pytest
+           python-setuptools))
     (home-page "https://www.freedesktop.org/wiki/Software/pyxdg";)
     (synopsis "Implementations of freedesktop.org standards in Python")
     (description

Reply via email to