[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
177/242: gnu: python-can: Update to 4.0.0.
From: |
guix-commits |
Subject: |
177/242: gnu: python-can: Update to 4.0.0. |
Date: |
Thu, 12 May 2022 14:14:27 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 8f3eb93cb0d2e1c506995050496e32e30911dd34
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 21b4ac3131..86365a04c2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2119,14 +2119,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
@@ -2137,8 +2137,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:
@@ -2146,16 +2146,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
- 158/242: gnu: python-pandas: Build and run tests in parallel., (continued)
- 158/242: gnu: python-pandas: Build and run tests in parallel., guix-commits, 2022/05/12
- 163/242: gnu: python-jupyter-server: Update to 1.16.0., guix-commits, 2022/05/12
- 159/242: gnu: python-pandas: Update to 1.4.2., guix-commits, 2022/05/12
- 166/242: gnu: python-sparqlkernel: Use gexps and fix inputs., guix-commits, 2022/05/12
- 169/242: gnu: xeus: Update to 2.4.1., guix-commits, 2022/05/12
- 173/242: gnu: mbed-tools: Update to 7.53.0 and relax click version requirement., guix-commits, 2022/05/12
- 184/242: gnu: sshoot: Update to 1.5.1., guix-commits, 2022/05/12
- 182/242: gnu: python-bitstruct: Update to 8.14.0., guix-commits, 2022/05/12
- 181/242: gnu: Add python-argparse-addons., guix-commits, 2022/05/12
- 196/242: gnu: python-miio: Update to 0.5.11., guix-commits, 2022/05/12
- 177/242: gnu: python-can: Update to 4.0.0.,
guix-commits <=
- 189/242: gnu: Add python-mdx-gh-links., guix-commits, 2022/05/12
- 190/242: gnu: python-mkdocs: Update to 1.3.0., guix-commits, 2022/05/12
- 199/242: gnu: weasyprint: Update to 54.3., guix-commits, 2022/05/12
- 211/242: gnu: python2-sqlalchemy: Skip a failing test., guix-commits, 2022/05/12
- 217/242: gnu: python-sphinx-click: Update to 4.0.3 and enable tests., guix-commits, 2022/05/12
- 224/242: gnu: python-sphinx-autodoc-typehints: Update to 1.18.1., guix-commits, 2022/05/12
- 222/242: gnu: Add python-beartype., guix-commits, 2022/05/12
- 225/242: gnu: python-sphinxext-opengraph: Update to 0.6.3., guix-commits, 2022/05/12
- 226/242: gnu: python-sphinx-rtd-theme: Update to 1.0.0., guix-commits, 2022/05/12
- 57/242: gnu: Add python-pip-run., guix-commits, 2022/05/12