From 2c3385b296cfa3f098c3372397ddb166b436a064 Mon Sep 17 00:00:00 2001 From: Franz Geffke Date: Thu, 22 Feb 2024 19:39:15 +0000 Subject: python-bleak: v0.21.1 --- px/packages/python-xyz.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'px/packages/python-xyz.scm') diff --git a/px/packages/python-xyz.scm b/px/packages/python-xyz.scm index 7ddac67..b97fb96 100644 --- a/px/packages/python-xyz.scm +++ b/px/packages/python-xyz.scm @@ -8,6 +8,7 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-web) @@ -920,4 +921,35 @@ communicating with your Coldcard over USB") (home-page "https://github.com/Bluetooth-Devices/dbus-fast") (synopsis "A faster version of dbus-next") (description "This package provides a faster version of dbus-next") - (license license:expat))) \ No newline at end of file + (license license:expat))) + +(define-public python-bleak + (package + (name "python-bleak") + (version "0.21.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "bleak" version)) + (sha256 + (base32 "13y1yld3li2z0ckjf3iblml6kqn7f0q1b8ds5jcmncgvf8kiljpc")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #false ;there are none + #: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")))) + (delete 'sanity-check)))) + (native-inputs (list pkg-config python-poetry-core)) + (propagated-inputs (list python-async-timeout + python-dbus-fast)) + (home-page "https://github.com/hbldh/bleak") + (synopsis "Bluetooth Low Energy platform Agnostic Klient") + (description "Bluetooth Low Energy platform Agnostic Klient") + (license license:expat))) \ No newline at end of file -- cgit v1.2.3