From 69b3eff2a212f4d8a8a4bf6177cb8b74d4f56f11 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 30 Nov 2024 14:41:24 +0000 Subject: [PATCH] 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 --- gnu/packages/python-xyz.scm | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b37407b128157638bc4552a5a877a332345c153a..bfc39e6039a65e9c4cd7b5b8dc8dc5b12b71dfc3 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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