From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gKeQLqhKkWK1YgEAbAwnHQ (envelope-from ) for ; Sat, 28 May 2022 00:03:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QFieLahKkWLKYwEAG6o9tA (envelope-from ) for ; Sat, 28 May 2022 00:03:20 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4555E1AF6F for ; Sat, 28 May 2022 00:03:20 +0200 (CEST) Received: from localhost ([::1]:58144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nui3D-0003j2-1k for larch@yhetil.org; Fri, 27 May 2022 18:03:19 -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 Content-Type: multipart/mixed; boundary="=-=-=" 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653689000; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=bVSG4GkXNhYHsBY650LI6U7AUL4WUv03ve0S2B0RIuU=; b=rQ64VrItVVzU8DR79H3Fa+NzHjU+jZrJQvq78cgbRwHuzVqF9hzbqEmCQlleaoMkUj0rOl QAjOT8uYVTHvF5kwVVRKTA1wAfTP1tbIeKfr9Cm/9R/RIR1hkY2bfyQifofkRF+jMjdmcY G024wEI2aPouJJNVaHoygnAN10FtDF8H6tV8Wwp4gTdr5f8fO1uXkgGgpCMgXhkhvCRfch 0T3L2GYyarzxMEPYL2LoxC2/x8EKV3lxWPXXG/YHgVj+IpsdyUGoOkOEc6F/81Xr/9lIt0 IvcxGKDZrbuG1OOQQkYLcV12eDTQF7Xb+2ws3xi68McUdHxxZI+26qHFtVFAhA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653689000; a=rsa-sha256; cv=none; b=Qwv+kmrha4aqH8lQ2JS69zdx1MPkeq1OZIhPk0h7M5R6Yp8PMa+MYUWBE9SIyrTSslaIkQ 2KSs/m2wETsPNFaYl2JTboKg3Aq5wQrDIXQ6xKbsuDPmSKZuI/Q1leutEc86JskiX9qQyd yWrhU3lzkYqhTjnAbuJtsu3+UalUzJaYoFT0m57nvXam034eViXyL7A10TSHKa2U14yAU0 qDJlKnRLk1qRkwyyYpw/Q5MMKok55dBVxEuJ0cHeVoUieQ0RjnDEay9cU+qc5jY7H/Oxqb F1dhjJe0SLj4cDT++qs1bfN87AdPXqqNK0YcmRdg9cj7iJn0dOuoNc6nSlhB9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=PB8ZTOom; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=PB8ZTOom; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4555E1AF6F X-Spam-Score: -3.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: Q73tvP/aMfwL --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-gat= t-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 =E2=80=9Cjust works=E2=80=9D. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline 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))) --=-=-=--