gnu: python-pyserial: Enable tests.

* gnu/packages/python-xyz.scm (python-pyserial): Enable tests, improve
package style.
[build-system]: Swap to pyproject-build-system.
[native-inputs]: Add python-pytest, python-setuptools, and python-wheel.

Change-Id: I826c7de11642f037ed4e6bc3eaa92dd2ef4d9500
This commit is contained in:
Sharlatan Hellseher 2024-11-30 14:41:24 +00:00
parent ec1df832c8
commit 69b3eff2a2
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -23139,20 +23139,17 @@ etc.")
(sha256
(base32
"1nyd4m4mnrz8scbfqn4zpq8gnbl4x42w5zz62vcgpzqd2waf0xrw"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: 3/49 tests are failing.
;; #:phases
;; (modify-phases %standard-phases
;; (replace 'check
;; (lambda _
;; (zero? (system* "python" "test/run_all_tests.py" "loop://")))))))
(home-page
"https://github.com/pyserial/pyserial")
(build-system pyproject-build-system)
(native-inputs
(list python-pytest
python-setuptools
python-wheel))
(home-page "https://github.com/pyserial/pyserial")
(synopsis "Python Serial Port Bindings")
(description "@code{pyserial} provide serial port bindings for Python. It
supports different byte sizes, stop bits, parity and flow control with RTS/CTS
and/or Xon/Xoff. The port is accessed in RAW mode.")
(description
"@code{pyserial} provide serial port bindings for Python. It supports
different byte sizes, stop bits, parity and flow control with RTS/CTS and/or
Xon/Xoff. The port is accessed in RAW mode.")
(license license:bsd-3)))
(define-public python-pyserial-asyncio