lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit d11334825e60d0f2e992b0c554ad87aaddc53956
Author: Lars-Dominik Braun <[email protected]>
AuthorDate: Fri Jan 7 13:33:13 2022 +0100
gnu: python-capablerobot-usbhub: Build using python-poetry-core.
* gnu/packages/libusb.scm (python-capablerobot-usbhub)[arguments]:
Override #:build-backend.
[native-inputs]: Add python-poetry-core.
---
gnu/packages/libusb.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index 01771dffca..aa8b45e942 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -47,6 +47,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 tls)
#:use-module (gnu packages xiph))
@@ -316,7 +317,8 @@ wrapper for accessing libusb-1.0.")
"1priic4iq2vn1rc711kzxwhxrwa508rkxrr193qdz2lw26kdhvix"))))
(build-system python-build-system)
(arguments
- `(#:phases
+ `(#:build-backend "poetry.core.masonry.api"
+ #:phases
(modify-phases %standard-phases
(add-after 'install 'install-udev-rules
(lambda* (#:key outputs #:allow-other-keys)
@@ -329,6 +331,7 @@ wrapper for accessing libusb-1.0.")
#t))))))
(propagated-inputs
(list python-click python-construct python-pyusb python-pyyaml))
+ (native-inputs (list python-poetry-core))
(home-page
"https://github.com/CapableRobot/CapableRobot_USBHub_Driver")
(synopsis