[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
177/232: gnu: python-can: Update to 4.0.0.
From: |
guix-commits |
Subject: |
177/232: gnu: python-can: Update to 4.0.0. |
Date: |
Sun, 24 Apr 2022 23:59:08 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 05f9f25d371d90260d1fbe88864b2fb19ae12cd0
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 19 14:38:56 2022 -0400
gnu: python-can: Update to 4.0.0.
* gnu/packages/python-xyz.scm (python-can): Update to 4.0.0.
[phases]: Strip trailing #t.
{relax-version-requirements}: Relax pytest-cov requirement.
{check}: Override phase.
[propagated-inputs]: Remove python-aenum. Add python-msgpack and
python-typing-extensions.
[native-inputs]: Add python-parameterized.
---
gnu/packages/python-xyz.scm | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c10a6ddb24..18aea5a53b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2107,14 +2107,14 @@ class.")
(define-public python-can
(package
(name "python-can")
- (version "3.3.4")
+ (version "4.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-can" version))
(sha256
(base32
- "0jclrvyxasaaxr0albq0kqrnrfqdgqxs7m2qw9nd8kfwg8xj4g1d"))))
+ "0pcbdgdw94lc2sxd56w6wdsshrs9dd5d3wp0x4sfd0drzx32inar"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
@@ -2125,8 +2125,8 @@ class.")
(("coverage<5") "coverage")
(("pytest~=4\\.6") "pytest")
(("pytest-timeout~=1\\.3") "pytest-timeout")
- (("hypothesis~=4\\.56") "hypothesis"))
- #t))
+ (("pytest-cov.*") "pytest-cov\n")
+ (("hypothesis~=4\\.56") "hypothesis"))))
(add-after 'unpack 'fix-broken-tests
;; The tests try to run two scripts it expects should be
;; in PATH, but they aren't at this time (see:
@@ -2134,16 +2134,26 @@ class.")
(lambda _
(substitute* "test/test_scripts.py"
(("\"can_logger\\.py --help\"") "")
- (("\"can_player\\.py --help\"") ""))
- #t)))))
+ (("\"can_player\\.py --help\"") ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "test"
+ ;; Disable tests which require specific CAN
+ ;; drivers we have no package for in Guix.
+ "--ignore" "test/test_interface_canalystii.py"
+ ;; These tests fail with "OSError: [Errno 19]
+ ;; No such device".
+ "-k" "not BasicTestUdpMulticastBusIPv")))))))
(propagated-inputs
- (list python-aenum python-wrapt))
+ (list python-msgpack python-typing-extensions python-wrapt))
(native-inputs
(list python-codecov
python-coverage
python-future
python-hypothesis
python-mock
+ python-parameterized
python-pyserial
python-pytest
python-pytest-cov
- 156/232: gnu: python-llvmlite: Update to 0.38.0., (continued)
- 156/232: gnu: python-llvmlite: Update to 0.38.0., guix-commits, 2022/04/24
- 158/232: gnu: python-pandas: Build and run tests in parallel., guix-commits, 2022/04/24
- 159/232: gnu: python-pandas: Update to 1.4.2., guix-commits, 2022/04/24
- 160/232: gnu: python-scikit-learn: Parallelize build and test suite., guix-commits, 2022/04/24
- 164/232: gnu: python-voila: Update to 0.3.5., guix-commits, 2022/04/24
- 162/232: gnu: python-umap-learn: Update to 0.5.3., guix-commits, 2022/04/24
- 170/232: gnu: python-types-dataclasses: Fix typo., guix-commits, 2022/04/24
- 172/232: gnu: python-readme-renderer: Update to 34.0., guix-commits, 2022/04/24
- 173/232: gnu: mbed-tools: Update to 7.53.0 and relax click version requirement., guix-commits, 2022/04/24
- 167/232: gnu: python-jupyter-protocol: Update to 0.2.0., guix-commits, 2022/04/24
- 177/232: gnu: python-can: Update to 4.0.0.,
guix-commits <=
- 191/232: gnu: Add python-crccheck., guix-commits, 2022/04/24
- 198/232: gnu: Add python-pydyf., guix-commits, 2022/04/24
- 206/232: gnu: Remove python2-keyring., guix-commits, 2022/04/24
- 188/232: gnu: python-ghp-import: Update to 2.0.2., guix-commits, 2022/04/24
- 207/232: gnu: python-pingouin: Update to 0.5.1., guix-commits, 2022/04/24
- 212/232: gnu: dynaconf: Fix build following python-click upgrade., guix-commits, 2022/04/24
- 215/232: gnu: python-pydata-sphinx-theme: Update to 0.7.2., guix-commits, 2022/04/24
- 68/232: gnu: python-setuptools: Update to 62.0.0., guix-commits, 2022/04/24
- 69/232: gnu: python-pathpy: Deprecate by python-path., guix-commits, 2022/04/24
- 91/232: gnu: python-flask: Update to 2.1.1., guix-commits, 2022/04/24