mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
1f73cb5c4f
commit
716e4f3a99
1 changed files with 19 additions and 26 deletions
|
@ -1372,40 +1372,33 @@ For information about libevdev, see:
|
||||||
(define-public python-pyxdg
|
(define-public python-pyxdg
|
||||||
(package
|
(package
|
||||||
(name "python-pyxdg")
|
(name "python-pyxdg")
|
||||||
(version "0.27")
|
(version "0.28")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "pyxdg" version))
|
(uri (pypi-uri "pyxdg" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"19f5j5mxp7ff0vp33s32qbpdi65iiwha0bj641gl70pdwnm97gc0"))))
|
"1d48bqwkbnpid80cpwz6h62i112laxl0ivpj58hdyd79fhqbnrrj"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
(replace 'check
|
;; Tests failing with error: AssertionError: 'image' != 'inode'
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
#~(list "--deselect=test/test_mime.py::MimeTest::test_get_type"
|
||||||
(setenv "XDG_DATA_DIRS"
|
"--deselect=test/test_mime.py::MimeTest::test_get_type2")
|
||||||
(string-append (assoc-ref inputs "shared-mime-info")
|
#:phases
|
||||||
"/share/"))
|
#~(modify-phases %standard-phases
|
||||||
(substitute* "test/test-icon.py"
|
(add-before 'check 'pre-check
|
||||||
(("/usr/share/icons/hicolor/index.theme")
|
(lambda _
|
||||||
(string-append (assoc-ref inputs "hicolor-icon-theme")
|
(setenv "XDG_DATA_DIRS"
|
||||||
"/share/icons/hicolor/index.theme")))
|
(string-append #$(this-package-native-input "shared-mime-info")
|
||||||
|
"/share/")))))))
|
||||||
;; 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"))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
;; For tests.
|
(list shared-mime-info
|
||||||
(list shared-mime-info hicolor-icon-theme python-nose))
|
hicolor-icon-theme
|
||||||
|
python-pytest
|
||||||
|
python-setuptools))
|
||||||
(home-page "https://www.freedesktop.org/wiki/Software/pyxdg")
|
(home-page "https://www.freedesktop.org/wiki/Software/pyxdg")
|
||||||
(synopsis "Implementations of freedesktop.org standards in Python")
|
(synopsis "Implementations of freedesktop.org standards in Python")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue