diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-21 22:07:57 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:53 +0100 |
| commit | b7f4b400f7f189b30fd6c589383a7405bcd96d41 (patch) | |
| tree | cd1a63d32e6a20e1a3ee76dfe409445d6b037f6b /gnu/packages/python-xyz.scm | |
| parent | f54794bdf6d812b46690d195636ccbe7a46b2439 (diff) | |
gnu: python-can: Update to 4.6.1.
* gnu/packages/python-xyz.scm (python-can): Update to 4.6.1.
[source]: Switch to git-fetch.
[arguments]<#:phases>: Add phase 'set-version.
[native-inputs]: Remove python-codecov, python-coverage,
python-pytest-runner, python-wheel. Add python-setuptools,
python-setuptools-scm.
[description]: Improve style.
Change-Id: I75d9fa49566d8cb47b34c04f5a7bf67112f2c8ea
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index fe57b9027d..7e7d16705e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5357,14 +5357,16 @@ your Python package version as a calendar version.") (define-public python-can (package (name "python-can") - (version "4.2.0") + (version "4.6.1") (source (origin - (method url-fetch) - (uri (pypi-uri "python-can" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/hardbyte/python-can") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1w5sdzxivpd3pw4pypwnjlksvfimdb93qnlddbrh5f13flhsgg8g")))) + (base32 "0i89hzc9n1h8i63wa333ahh5j1xqxq9v4ymcx7mcsg6ygji5wllr")))) (build-system pyproject-build-system) (arguments (list @@ -5375,16 +5377,17 @@ your Python package version as a calendar version.") ;; ;; Disable tests which require specific CAN drivers we have no ;; package for in Guix. - "--ignore" "test/test_interface_canalystii.py" + "--ignore=test/test_interface_canalystii.py" ;; These tests fail with "OSError: [Errno 19] No such device". - "-k" "not BasicTestUdpMulticastBusIPv"))) - (propagated-inputs - (list python-msgpack python-typing-extensions python-wrapt - python-setuptools)) + "-k" "not BasicTestUdpMulticastBusIPv") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) + (propagated-inputs (list python-packaging python-wrapt)) (native-inputs (list ;; python-canalystii ; Not packed yet - python-codecov - python-coverage python-future python-hypothesis python-mock @@ -5392,13 +5395,14 @@ your Python package version as a calendar version.") python-pyserial python-pytest python-pytest-cov - python-pytest-runner python-pytest-timeout - python-wheel)) + python-setuptools + python-setuptools-scm)) (home-page "https://github.com/hardbyte/python-can") (synopsis "Controller Area Network (CAN) interface module for Python") - (description "This package defines the @code{can} module, which provides -controller area network (CAN) support for Python developers; providing common + (description + "This package defines the @code{can} module, which provides controller +area network (CAN) support for Python developers; providing common abstractions to different hardware devices, and a suite of utilities for sending and receiving messages on a CAN bus.") (license license:lgpl3+))) |
