diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-01-22 21:26:03 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-01-22 21:31:32 +0000 |
commit | ffc5fefce370f5fc01091869e13fdf525be1e0c0 (patch) | |
tree | 4b2056f18de3319a7274460f67323de5aa47a957 /gnu/packages/linux.scm | |
parent | 014d0541ae7fb6017564e57d03958831d4428dd0 (diff) | |
download | guix-ffc5fefce370f5fc01091869e13fdf525be1e0c0.tar.gz guix-ffc5fefce370f5fc01091869e13fdf525be1e0c0.zip |
gnu: python-evdev: Enable tests.
* gnu/packages/linux.scm (python-evdev): Enable tests and apply new
package style.
[source]: Use git checkout which provides tests.
[build-system]: Swap to pyproject-build-system.
[arguments]<#:test-flags>: Silent tests requiring access to /dev/uinput.
<#:phases>: Remove trailing #t from lambda.
[native-inputs]: Add python-pytest.
Change-Id: I9474459428d94eefa501458d62f24c6918958515
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r-- | gnu/packages/linux.scm | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 78d317e369..271c5c0162 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -79,6 +79,7 @@ ;;; Copyright © 2023, 2024 Wilko Meyer <w@wmeyer.eu> ;;; Copyright © 2023 Jaeme Sifat <jaeme@runbox.com> ;;; Copyright © 2024 Gabriel Wicki <gabriel@erlikon.ch> +;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -4399,22 +4400,33 @@ time.") (version "1.5.0") (source (origin - (method url-fetch) - (uri (pypi-uri "evdev" version)) + (method git-fetch) ; no tests data in PyPi package + (uri (git-reference + (url "https://github.com/gvalkov/py 2023-09-24 | gnu: rizin: Edit synopsis.... | Tobias Geerinckx-Rice | 2023-09-24 | gnu: rizin: Update to 0.6.2.... | Tobias Geerinckx-Rice | 2023-09-24 | gnu: minicom: Update package style.... | Tobias Geerinckx-Rice | 2023-09-24 | gnu: minicom: Update to 2.9.... | Tobias Geerinckx-Rice | 2023-09-26 | gnu: capstone: Update to 5.0.1.... | Maxim Cournoyer | + " and not test_open_context" + " and not test_enable_events" + " and not test_abs_values" + " and not test_write")) + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'fix-hard-coded-directory + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "setup.py" + (("/usr/include/linux") + (string-append + (assoc-ref inputs "kernel-headers") "/include/linux")))))))) + (native-inputs + (list python-pytest)) (home-page "https://github.com/gvalkov/python-evdev") (synopsis "Bindings to the Linux input handling subsystem") (description |