mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-kivymd: Move to python-graphics.
* gnu/packages/python-xyz.scm (python-kivymd): Move from here ... * gnu/packages/python-graphics.scm: ... to here. Change-Id: I9ec6cb7eb19741d01daca4ba8df82267e72887cc
This commit is contained in:
parent
42f7d1c9ae
commit
0fb79cb9b7
2 changed files with 68 additions and 68 deletions
|
@ -213,6 +213,74 @@ ModernGL on multiple platforms.")
|
|||
GLFW} OpenGL application development library.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public python-kivymd
|
||||
(package
|
||||
(name "python-kivymd")
|
||||
(version "1.1.1")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch) ; no tests in PyPI release
|
||||
(uri (git-reference
|
||||
(url "https://github.com/kivymd/KivyMD")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1nprldcm54qybbwf7zlb32fkmz375j8i3k3g41d6ykc6vasq3w5j"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
;; <https://github.com/pyinstaller/pyinstaller> is not packaged yet in
|
||||
;; Guix.
|
||||
#~(list "--ignore=kivymd/tests/pyinstaller"
|
||||
"-k" (string-join
|
||||
;; FIXME: Only some tests passed, the most fail with err:
|
||||
;; 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
|
||||
(list python-kivy
|
||||
python-pillow
|
||||
python-pygments
|
||||
python-kivy-garden))
|
||||
(home-page "https://github.com/kivymd/KivyMD")
|
||||
(synopsis "Material Design compliant widgets for use with Kivy")
|
||||
(description
|
||||
"This package provides Kivy widgets that approximate Google's Material
|
||||
Design spec without sacrificing ease of use or application performance.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public python-pyglet
|
||||
(package
|
||||
(name "python-pyglet")
|
||||
|
|
|
@ -24671,74 +24671,6 @@ for Kivy, the multitouch application platform.")
|
|||
multitouch applications.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public python-kivymd
|
||||
(package
|
||||
(name "python-kivymd")
|
||||
(version "1.1.1")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch) ; no tests in PyPI release
|
||||
(uri (git-reference
|
||||
(url "https://github.com/kivymd/KivyMD")
|
||||
(commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "1nprldcm54qybbwf7zlb32fkmz375j8i3k3g41d6ykc6vasq3w5j"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:test-flags
|
||||
;; <https://github.com/pyinstaller/pyinstaller> is not packaged yet in
|
||||
;; Guix.
|
||||
#~(list "--ignore=kivymd/tests/pyinstaller"
|
||||
"-k" (string-join
|
||||
;; FIXME: Only some tests passed, the most fail with err:
|
||||
;; 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
|
||||
(list python-kivy
|
||||
python-pillow
|
||||
python-pygments
|
||||
python-kivy-garden))
|
||||
(home-page "https://github.com/kivymd/KivyMD")
|
||||
(synopsis "Material Design compliant widgets for use with Kivy")
|
||||
(description
|
||||
"This package provides Kivy widgets that approximate Google's Material
|
||||
Design spec without sacrificing ease of use or application performance.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public python-async-lru
|
||||
(package
|
||||
(name "python-async-lru")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue