diff options
author | Franz Geffke <franz@pantherx.org> | 2024-02-22 19:39:15 +0000 |
---|---|---|
committer | Franz Geffke <franz@pantherx.org> | 2024-02-22 19:39:15 +0000 |
commit | 2c3385b296cfa3f098c3372397ddb166b436a064 (patch) | |
tree | e6807e92af9a2938cc805c2f2543389c6505daa8 /px/packages/python-xyz.scm | |
parent | 226127fba42720c5e6fd78aaf642d0fe8c73ed02 (diff) |
python-bleak: v0.21.1
Diffstat (limited to 'px/packages/python-xyz.scm')
-rw-r--r-- | px/packages/python-xyz.scm | 34 |
1 files changed, 33 insertions, 1 deletions
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 |