gnu: python-efl: Update to 1.26.1.

* gnu/packages/enlightenment.scm (python-efl): Update to 1.26.1.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-flags>: Ignore failing tests.
<#:phases>: Improve readability.
[native-inputs]: Add python-pytest, python-setuptools.

Change-Id: I0f06150d89fd6f0703ad31d1ba6589c41bc9d1ae
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-12-21 23:51:27 +01:00 committed by Sharlatan Hellseher
parent bf6d52423e
commit 45684d45b4
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -392,50 +392,56 @@ embedded systems.")
(define-public python-efl (define-public python-efl
(package (package
(name "python-efl") (name "python-efl")
(version "1.26.0") (version "1.26.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://download.enlightenment.org/rel/bindings/" (uri (string-append "https://download.enlightenment.org/rel/bindings/"
"python/python-efl-" version ".tar.xz")) "python/python-efl-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32 "1mr80vgbcs03rs5lbmg8pxj8hifkrzrwdrw01plik2h729z3knyw"))
"0dj6f24n33hkpy0bkdclnzpxhvs8vpaxqaf7hkw0di19pjwrq25h")) (modules '((guix build utils)))
(modules '((guix build utils))) ;; Remove files generated by Cython
;; Remove files generated by Cython (snippet
(snippet '(begin
'(begin (for-each (lambda (file)
(for-each (lambda (file) (let ((generated-file
(let ((generated-file (string-append (string-drop-right file 3) "c")))
(string-append (string-drop-right file 3) "c"))) (when (file-exists? generated-file)
(when (file-exists? generated-file) (delete-file generated-file))))
(delete-file generated-file)))) (find-files "efl" "\\.pyx$"))
(find-files "efl" "\\.pyx$")) (delete-file "efl/eo/efl.eo_api.h")))))
(delete-file "efl/eo/efl.eo_api.h"))))) (build-system pyproject-build-system)
(build-system python-build-system)
(arguments (arguments
'(#:phases (list
(modify-phases %standard-phases #:test-flags
(replace 'build #~(list "tests"
(lambda _ ;; These tests try to connect to the internet.
(setenv "ENABLE_CYTHON" "1") "--ignore=tests/ecore/test_09_file_download.py"
(invoke "python" "setup.py" "build"))) "--ignore=tests/ecore/test_11_con.py"
(add-before 'build 'set-flags ;; The above test ignorance probably breaks this one.
(lambda _ "--deselect=tests/ecore/test_08_exe.py::TestExe::testInit"
(setenv "CFLAGS" ;; This test requires access to a running Xorg server,
(string-append "-I" (assoc-ref %build-inputs "python-dbus") ;; /var/lib/dbus and /etc.
"/include/dbus-1.0")))) "--ignore=tests/dbus/test_01_basics.py"
(add-before 'check 'set-environment ;; XXX: RuntimeWarning: Setting standard icon failed
(lambda _ "--ignore=tests/elementary/test_02_image_icon.py")
;; Some tests require write access to HOME. #:phases
(setenv "HOME" "/tmp") #~(modify-phases %standard-phases
;; These tests try to connect to the internet. (add-before 'build 'set-flags
(delete-file "tests/ecore/test_09_file_download.py") (lambda* (#:key inputs #:allow-other-keys)
(delete-file "tests/ecore/test_11_con.py")))))) (let ((include-dir (search-input-directory inputs
"include/dbus-1.0")))
(setenv "CFLAGS" (string-append "-I" include-dir)))))
(add-before 'check 'configure-tests
(lambda _
(setenv "HOME" "/tmp")))))) ;needed by tests
(native-inputs (native-inputs
(list pkg-config python-cython-0)) (list pkg-config
(inputs python-cython-0
(list efl python-dbus python-packaging)) python-pytest
python-setuptools))
(inputs (list efl python-dbus python-packaging))
(home-page "https://www.enlightenment.org/") (home-page "https://www.enlightenment.org/")
(synopsis "Python bindings for EFL") (synopsis "Python bindings for EFL")
(description (description