From patchwork Fri May 27 22:02:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 39643 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7BB5F27BBEA; Fri, 27 May 2022 23:03:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2C18027BBE9 for ; Fri, 27 May 2022 23:03:18 +0100 (BST) Received: from localhost ([::1]:58144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nui3B-0003j2-BC for patchwork@mira.cbaines.net; Fri, 27 May 2022 18:03:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nui2x-0003is-48 for guix-patches@gnu.org; Fri, 27 May 2022 18:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nui2w-0006LT-RV for guix-patches@gnu.org; Fri, 27 May 2022 18:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nui2w-0001YE-LB for guix-patches@gnu.org; Fri, 27 May 2022 18:03:02 -0400 Subject: bug#55518: [PATCH] gnu: Add python-gatt. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Fri, 27 May 2022 22:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 55518 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "Wamm K. D" Cc: 55518-done@debbugs.gnu.org, jackhill@jackhill.us Mail-Followup-To: 55518@debbugs.gnu.org, ludo@gnu.org, jaft.r@outlook.com Received: via spool by 55518-done@debbugs.gnu.org id=D55518.16536889735941 (code D ref 55518); Fri, 27 May 2022 22:03:02 +0000 Received: (at 55518-done) by debbugs.gnu.org; 27 May 2022 22:02:53 +0000 Received: from localhost ([127.0.0.1]:35971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nui2m-0001Xl-OG for submit@debbugs.gnu.org; Fri, 27 May 2022 18:02:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nui2k-0001XX-PU for 55518-done@debbugs.gnu.org; Fri, 27 May 2022 18:02:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nui2e-0006J4-4R; Fri, 27 May 2022 18:02:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=bVSG4GkXNhYHsBY650LI6U7AUL4WUv03ve0S2B0RIuU=; b=PB8ZTOomhTdyyqJgKP4C vKa3MLB809DJJj7AuLLLd9tV0a+7G0gpGZutp93/hRocEqT0iCyPUfKCDQjs5Dn9jTbgqj5aBFkhj TGL0G/0vsf2s/zB1XEnRojSOsaKSP9AjX8ztoy1+HWb6sO4cMZ2kxe2RTxZzwzAXxxhkreC8NPuaP s4W+thVQdolD9D8PcMp2j4XHWpCylHiOaML3Aw0ja3yN4tPWwdJJ8GTOz2qDKJoAZ8EOqGybRe2i+ s596RxTDRPo22gkE87OcCvVMCp+AYLRd+KcGswDO3g7ZVQyOl8MHdrPXW4hJwlzFYSXz4oyXppXzf DjVDC1f0YOiIfw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:52026 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nui2Y-0001Hm-1I; Fri, 27 May 2022 18:02:39 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= References: Date: Sat, 28 May 2022 00:02:35 +0200 In-Reply-To: (Wamm K. D.'s message of "Thu, 19 May 2022 01:05:22 -0500") Message-ID: <87wne6bpms.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi, I added a commit log and applied with the changes below, as suggested by Tobias (for the description). The inputs are propagated because, for instance, the code reads: --8<---------------cut here---------------start------------->8--- try: import dbus import dbus.mainloop.glib except ImportError: import sys print("Module 'dbus' not found") print("Please run: sudo apt-get install python3-dbus") print("See also: https://github.com/getsenic/gatt-python#installing-gatt-sdk-for-python") sys.exit(1) --8<---------------cut here---------------end--------------->8--- Thus, if you install python-gatt in a profile, python-dbus should be propagated as well so it “just works”. Thanks, Ludo’. diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d706906a9d..fe1896efca 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31806,32 +31806,35 @@ (define-public python-srt composing subtitles in the SRT file format.") (license license:expat))) -(define python-gatt +(define-public python-gatt (package (name "python-gatt") (version "0.2.7") (source (origin (method url-fetch) (uri (pypi-uri "gatt" version)) - (sha256 (base32 - "0fjf066jixk30fr8xwfalwfnhqpr56yv0cccyypnx2qp9bi9svb2")))) - (inputs (list python-dbus python-pygobject)) + (sha256 + (base32 + "0fjf066jixk30fr8xwfalwfnhqpr56yv0cccyypnx2qp9bi9svb2")))) + (propagated-inputs (list python-dbus python-pygobject)) (build-system python-build-system) (home-page "https://github.com/getsenic/gatt-python") (synopsis "Bluetooth GATT SDK for Python") (description "The Bluetooth @acronym{GATT, Generic ATTribute Profile} -@acronym{SDK, Software Development Kit} for Python helps you implementing and -communicating with any Bluetooth Low Energy device that has a @acronym{GATT} +@acronym{SDK, Software Development Kit} for Python helps you implement and +communicate with any Bluetooth Low Energy device that has a GATT profile. It supports: + @itemize @bullet @item Discovering nearby Bluetooth Low Energy devices @item Connecting and disconnecting devices -@item Implementing your custom @acronym{GATT} profile -@item Accessing all @acronym{GATT} services -@item Accessing all @acronym{GATT} characteristics +@item Implementing your custom GATT profile +@item Accessing all GATT services +@item Accessing all GATT characteristics @item Reading characteristic values @item Writing characteristic values @item Subscribing for characteristic value change notifications @end itemize + Currently, Linux is the only platform supported by this library.") (license license:expat)))