[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
171/204: gnu: python-can: Update to 4.0.0.
From: |
guix-commits |
Subject: |
171/204: gnu: python-can: Update to 4.0.0. |
Date: |
Wed, 20 Apr 2022 02:03:42 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit c186c5c8ccc910da9101702da0c986a53abb8f16
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 7a5261d521..d744580c83 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
- 142/204: gnu: Add python-aioredis., (continued)
- 142/204: gnu: Add python-aioredis., guix-commits, 2022/04/20
- 152/204: gnu: python-pandas: Build and run tests in parallel., guix-commits, 2022/04/20
- 155/204: gnu: python-pynndescent: Update to 0.5.6., guix-commits, 2022/04/20
- 153/204: gnu: python-pandas: Update to 1.4.2., guix-commits, 2022/04/20
- 157/204: gnu: python-jupyter-server: Update to 1.16.0., guix-commits, 2022/04/20
- 158/204: gnu: python-voila: Update to 0.3.5., guix-commits, 2022/04/20
- 159/204: gnu: python-sparqlwrapper: Update to 2.0.0., guix-commits, 2022/04/20
- 167/204: gnu: mbed-tools: Update to 7.53.0 and relax click version requirement., guix-commits, 2022/04/20
- 169/204: gnu: python-parse-type: Update to 0.6.0, fixing build., guix-commits, 2022/04/20
- 170/204: gnu: Add python-bson., guix-commits, 2022/04/20
- 171/204: gnu: python-can: Update to 4.0.0.,
guix-commits <=
- 174/204: gnu: python-celery: Update to 5.2.6 and enable tests., guix-commits, 2022/04/20
- 177/204: gnu: Add python-toolrack., guix-commits, 2022/04/20
- 178/204: gnu: sshoot: Update to 1.5.1., guix-commits, 2022/04/20
- 181/204: gnu: Add python-pyyaml-env-tag., guix-commits, 2022/04/20
- 190/204: gnu: python-miio: Update to 0.5.11., guix-commits, 2022/04/20
- 193/204: gnu: weasyprint: Update to 54.3., guix-commits, 2022/04/20
- 202/204: gnu: python-flask-wtf: Update to 1.0.1., guix-commits, 2022/04/20
- 197/204: gnu: setzer: Add python-wrapper to fix build., guix-commits, 2022/04/20
- 204/204: snippets: Add a 'remove' snippet., guix-commits, 2022/04/20
- 164/204: gnu: python-types-dataclasses: Fix typo., guix-commits, 2022/04/20