[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/13: gnu: python-capablerobot-usbhub: Update to 0.5.0.
From: |
guix-commits |
Subject: |
11/13: gnu: python-capablerobot-usbhub: Update to 0.5.0. |
Date: |
Mon, 20 Feb 2023 08:06:23 -0500 (EST) |
ngz pushed a commit to branch master
in repository guix.
commit ed00a514e5a12912e8731f12c0bb710185f35655
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Feb 12 23:49:57 2023 +0000
gnu: python-capablerobot-usbhub: Update to 0.5.0.
* gnu/packages/libusb.scm (python-capablerobot-usbhub): Fix build and
update to 0.5.0.
[source]: Use Git checkout which allows to pass build the package.
[build-system]: Use PYPROJECT-BUILD-SYSTEM.
[arguments]{tests}: Disable them as not provided.
[phases]use-poetry-core}: New phase.
[phases]{install-udev-rules}: Remove trailing #T from lambda.
[native-inputs]: Add PYTHON-POETRY-CORE.
[propagated-inputs]: Replace PYTHON-PYYAML-7 and PYTHON-PYYAML-5 by
PYTHON-CLICK and PYTHON-PYYAML.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/libusb.scm | 34 ++++++++++++++++++++++++----------
1 file changed, 24 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index d46f1f8cc2..468f7b1753 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -12,6 +12,7 @@
;;; Copyright © 2020 Christopher Howard <christopher@librehacker.com>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2022 Jacob Hrbek <kreyren@rixotstudio.cz>
+;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -40,6 +41,7 @@
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system glib-or-gtk)
+ #:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (gnu packages autotools)
#:use-module (gnu packages compression)
@@ -51,6 +53,7 @@
#:use-module (gnu packages mp3)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-build)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages readline)
#:use-module (gnu packages tls)
@@ -310,18 +313,28 @@ wrapper for accessing libusb-1.0.")
(define-public python-capablerobot-usbhub
(package
(name "python-capablerobot-usbhub")
- (version "0.2.7")
+ (version "0.5.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "capablerobot_usbhub" version))
+ ;; PyPI tarball fails to build.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/CapableRobot/CapableRobot_USBHub_Driver")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1priic4iq2vn1rc711kzxwhxrwa508rkxrr193qdz2lw26kdhvix"))))
- (build-system python-build-system)
+ (base32 "1nfd12612z9a9hby5dxg7lfqw5jcv3wcyqqagbg5izragni646mc"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
+ `(#:tests? #f ; No tests provided.
+ #:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'use-poetry-core
+ (lambda _
+ ;; Patch to use the core poetry API.
+ (substitute* "pyproject.toml"
+ (("poetry.masonry.api")
+ "poetry.core.masonry.api"))))
(add-after 'install 'install-udev-rules
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
@@ -329,10 +342,11 @@ wrapper for accessing libusb-1.0.")
(copy-file "50-capablerobot-usbhub.rules"
(string-append out
"/lib/udev/rules.d/"
- "50-capablerobot-usbhub.rules"))
- #t))))))
+ "50-capablerobot-usbhub.rules"))))))))
+ (native-inputs
+ (list python-poetry-core))
(propagated-inputs
- (list python-click python-construct python-pyusb python-pyyaml))
+ (list python-click-7 python-construct python-pyusb python-pyyaml-5))
(home-page
"https://github.com/CapableRobot/CapableRobot_USBHub_Driver")
(synopsis
- 05/13: gnu: emacs-magit: Update to 3.3.0-3.2c91c08., (continued)
- 05/13: gnu: emacs-magit: Update to 3.3.0-3.2c91c08., guix-commits, 2023/02/20
- 09/13: gnu: python-pygraphviz: Update to 1.10., guix-commits, 2023/02/20
- 10/13: gnu: python-construct: Update to 2.10.68., guix-commits, 2023/02/20
- 12/13: gnu: fet: Update to 6.8.4., guix-commits, 2023/02/20
- 13/13: gnu: sshpass: Update to 1.10., guix-commits, 2023/02/20
- 03/13: gnu: emacs-vertico-posframe: Update to 0.7.0., guix-commits, 2023/02/20
- 04/13: gnu: emacs-diff-hl: Update to 1.9.2., guix-commits, 2023/02/20
- 06/13: gnu: cwm: Update to 7.1., guix-commits, 2023/02/20
- 07/13: gnu: cwm: Improve package style., guix-commits, 2023/02/20
- 08/13: gnu: qsynth: Update to 0.9.9., guix-commits, 2023/02/20
- 11/13: gnu: python-capablerobot-usbhub: Update to 0.5.0.,
guix-commits <=