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>
This commit is contained in:
Nicolas Graves 2025-09-21 22:07:57 +02:00 committed by Sharlatan Hellseher
parent 4514403f55
commit 37ebdbe3dd
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -5357,14 +5357,16 @@ your Python package version as a calendar version.")
(define-public python-can (define-public python-can
(package (package
(name "python-can") (name "python-can")
(version "4.2.0") (version "4.6.1")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "python-can" version)) (uri (git-reference
(url "https://github.com/hardbyte/python-can")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "0i89hzc9n1h8i63wa333ahh5j1xqxq9v4ymcx7mcsg6ygji5wllr"))))
"1w5sdzxivpd3pw4pypwnjlksvfimdb93qnlddbrh5f13flhsgg8g"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
@ -5375,16 +5377,17 @@ your Python package version as a calendar version.")
;; ;;
;; Disable tests which require specific CAN drivers we have no ;; Disable tests which require specific CAN drivers we have no
;; package for in Guix. ;; 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". ;; These tests fail with "OSError: [Errno 19] No such device".
"-k" "not BasicTestUdpMulticastBusIPv"))) "-k" "not BasicTestUdpMulticastBusIPv")
(propagated-inputs #:phases
(list python-msgpack python-typing-extensions python-wrapt #~(modify-phases %standard-phases
python-setuptools)) (add-after 'unpack 'set-version
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(propagated-inputs (list python-packaging python-wrapt))
(native-inputs (native-inputs
(list ;; python-canalystii ; Not packed yet (list ;; python-canalystii ; Not packed yet
python-codecov
python-coverage
python-future python-future
python-hypothesis python-hypothesis
python-mock python-mock
@ -5392,13 +5395,14 @@ your Python package version as a calendar version.")
python-pyserial python-pyserial
python-pytest python-pytest
python-pytest-cov python-pytest-cov
python-pytest-runner
python-pytest-timeout python-pytest-timeout
python-wheel)) python-setuptools
python-setuptools-scm))
(home-page "https://github.com/hardbyte/python-can") (home-page "https://github.com/hardbyte/python-can")
(synopsis "Controller Area Network (CAN) interface module for Python") (synopsis "Controller Area Network (CAN) interface module for Python")
(description "This package defines the @code{can} module, which provides (description
controller area network (CAN) support for Python developers; providing common "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 abstractions to different hardware devices, and a suite of utilities for
sending and receiving messages on a CAN bus.") sending and receiving messages on a CAN bus.")
(license license:lgpl3+))) (license license:lgpl3+)))