mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-kivymd: Update to 1.1.1.
* gnu/packages/python-xyz.scm (python-kivymd): Update to 1.1.1. [source]: Switch to git-fetch containing tests. [build-system]: Switch to pyproject. [arguments] <tests?>: Enable some tests. <phases>: Add 'fix-modules. [native-inputs]: Add python-pytest, python-pytest-asyncio, python-setuptools, and python-wheel. Change-Id: I5b82048776484eb115ba590dd7a34bdb9097aa66
This commit is contained in:
parent
d3663ba409
commit
c17e70a3e9
1 changed files with 53 additions and 14 deletions
|
@ -24674,25 +24674,64 @@ multitouch applications.")
|
||||||
(define-public python-kivymd
|
(define-public python-kivymd
|
||||||
(package
|
(package
|
||||||
(name "python-kivymd")
|
(name "python-kivymd")
|
||||||
(version "0.104.2")
|
(version "1.1.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch) ; no tests in PyPI release
|
||||||
(uri (pypi-uri "kivymd" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/kivymd/KivyMD")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "04lwy6j0agrdwa4a6dl6qs97nx9ysmscmm8psvdzjpyj8aa1zg4p"))))
|
(base32 "1nprldcm54qybbwf7zlb32fkmz375j8i3k3g41d6ykc6vasq3w5j"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ;tests require network
|
(list
|
||||||
#:phases
|
#:test-flags
|
||||||
(modify-phases %standard-phases
|
;; <https://github.com/pyinstaller/pyinstaller> is not packaged yet in
|
||||||
(add-before 'sanity-check 'set-home
|
;; Guix.
|
||||||
(lambda _
|
#~(list "--ignore=kivymd/tests/pyinstaller"
|
||||||
;; 'kivy/__init__.py' wants to create $HOME/.kivy.
|
"-k" (string-join
|
||||||
(setenv "HOME" (getcwd)))))))
|
;; FIXME: Only some tests passed, the most fail with err:
|
||||||
(native-inputs (list python-docutils))
|
;; ValueError: KivyMD: App object must be initialized
|
||||||
|
;; before loading root widget.
|
||||||
|
(list "not test_backdrop_raw_app"
|
||||||
|
"test_bottom_navigation_m3_style_raw_app"
|
||||||
|
"test_card_m3_style_raw_app"
|
||||||
|
"test_chip_raw_app"
|
||||||
|
"test_imagelist_raw_app"
|
||||||
|
"test_list_raw_app"
|
||||||
|
"test_navigationdrawer_raw_app"
|
||||||
|
"test_tab_raw_app"
|
||||||
|
"test_textfield_raw_app")
|
||||||
|
" and not "))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-modules
|
||||||
|
(lambda _
|
||||||
|
(substitute* "setup.py"
|
||||||
|
;; If excluded, sanity check fails with error:
|
||||||
|
;; ModuleNotFoundError: No module named 'kivymd.tools.release'
|
||||||
|
(("\"kivymd.tools.release\"") ""))
|
||||||
|
;; Check phase fails struggling to find tests module.
|
||||||
|
(with-output-to-file "kivymd/tests/__init__.py"
|
||||||
|
(lambda _ (display "")))))
|
||||||
|
(add-before 'check 'set-home
|
||||||
|
(lambda _
|
||||||
|
;; FileNotFoundError: [Errno 2] No such file or directory:
|
||||||
|
;; '/homeless-shelter/.kivy'
|
||||||
|
(setenv "HOME" "/tmp"))))))
|
||||||
|
(native-inputs
|
||||||
|
(list python-docutils
|
||||||
|
python-pytest
|
||||||
|
python-pytest-asyncio
|
||||||
|
python-setuptools
|
||||||
|
python-wheel))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-kivy python-pillow python-pygments python-kivy-garden))
|
(list python-kivy
|
||||||
|
python-pillow
|
||||||
|
python-pygments
|
||||||
|
python-kivy-garden))
|
||||||
(home-page "https://github.com/kivymd/KivyMD")
|
(home-page "https://github.com/kivymd/KivyMD")
|
||||||
(synopsis "Material Design compliant widgets for use with Kivy")
|
(synopsis "Material Design compliant widgets for use with Kivy")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue