From patchwork Sun Feb 25 22:20:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Eure X-Patchwork-Id: 61124 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 E3E6727BBEA; Sun, 25 Feb 2024 22:22:12 +0000 (GMT) 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=ham 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 2F42B27BBE2 for ; Sun, 25 Feb 2024 22:22:12 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reMsR-0001B6-QG; Sun, 25 Feb 2024 17:21:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1reMsQ-0001An-ME for guix-patches@gnu.org; Sun, 25 Feb 2024 17:21:42 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1reMsQ-0006jB-DM; Sun, 25 Feb 2024 17:21:42 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reMsk-0006kV-TB; Sun, 25 Feb 2024 17:22:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67120] [PATCH v6 3/5] gnu: Add python-pystray. Resent-From: Ian Eure Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sun, 25 Feb 2024 22:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67120 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67120@debbugs.gnu.org Cc: Ian Eure , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , jgart Received: via spool by 67120-submit@debbugs.gnu.org id=B67120.170889968625795 (code B ref 67120); Sun, 25 Feb 2024 22:22:02 +0000 Received: (at 67120) by debbugs.gnu.org; 25 Feb 2024 22:21:26 +0000 Received: from localhost ([127.0.0.1]:54865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reMs9-0006ht-N2 for submit@debbugs.gnu.org; Sun, 25 Feb 2024 17:21:25 -0500 Received: from wfhigh8-smtp.messagingengine.com ([64.147.123.159]:35313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reMs2-0006gW-OA for 67120@debbugs.gnu.org; Sun, 25 Feb 2024 17:21:19 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.west.internal (Postfix) with ESMTP id 069531800084; Sun, 25 Feb 2024 17:20:47 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sun, 25 Feb 2024 17:20:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1708899647; x= 1708986047; bh=i3+alINHCUEpw/hY9dVJBD4kP8+Qw+rW6+EUlfVLOow=; b=l gyshe+Q2MZus6x1nefSC4RzTC6YXCcAWDxl3ua2HEVxGYvGHlZPYyQjS0TVffWxW OnI59GCKHLaNNZC3BBUV31QGOVQhmV3oQyFCfhjbFoIhndLp39u40PqY9/3SOXYc X8gpW8IJHXsyKKWoGgGBE8NbWpAZKa01b3hCLDIwWGdWKzXd9sNWUxdDcwwfowzl Syc4AY1H0igl9R9OZS0Hqz6zmORJG5CFC+KauETCQYW82K4ldqXSFAmQ/8qHNjil we7/gDc+H6n9Tl2ackU6BQfaFBMNca2kzp42pQtOXoclibw0lR/03ljDZUsy8zt0 OB2O5yRZUx88ph51IbGpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1708899647; x= 1708986047; bh=i3+alINHCUEpw/hY9dVJBD4kP8+Qw+rW6+EUlfVLOow=; b=p ygEsHo5ozxdf19PzwwfFux/51ctCuKaDbZNQZpkFXR7o+eax+MuU3DCkBG92REW6 UDwma/N13n9Lx7bCmS9ASh3E86oV33J15U9rYMBKRATDScS0YQKATviR6weVVTls Sr31gdbPkGb63YnnmLeYe/S7mQaq4LoPZ+bOyvnHHWSWvcqllApPwNi4lBZ9ZzQv UrcSmo5+79wzCjrGT3APjcvyhXjSlVfiEVWFL4xvbK4ySezB5oQtK+6EcnxdL+Vc /gg0CfALUeRy2yuFr2kpndH1Wm6utnrKG4ogSOp3ERJym1My5Zs7FRbZLTN64FQ6 98JymHcpXytjib4tx2EUg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrgedtgdduheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefkrghnucfguhhrvgcuoehirghnsehrvghtrhhoshhpvggt rdhtvheqnecuggftrfgrthhtvghrnhepvdeugeduveefgeehvddthefgjeevvddvtefghe egtdfgueeitdehgfduffevjeeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucev lhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehirghnsehrvg htrhhoshhpvggtrdhtvh X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 25 Feb 2024 17:20:46 -0500 (EST) From: Ian Eure Date: Sun, 25 Feb 2024 14:20:32 -0800 Message-ID: <15207e8eede378884440bdd136a9d900226f0817.1708899540.git.ian@retrospec.tv> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-pystray): New variable. Change-Id: If10777c9ec91b549b9937b4825565223786a75cb --- gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1ed1f0e135..36442f0870 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -31728,6 +31728,42 @@ (define-public python-qdarkstyle Qt applications.") (license license:expat))) +(define-public python-pystray + (package + (name "python-pystray") + (version "0.19.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/moses-palmer/pystray") + (commit "1907f8681d6d421517c63d94f425f9cdd74d0034"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vj6c8s7rbc7xc4bi5brx5629ls1ri9prcw9290v85hagilmp609")))) + (build-system python-build-system) + (arguments + (list + ;; The test suite requires user interaction, there are no automated + ;; tests. + #:tests? #false + #:phases #~(modify-phases %standard-phases + (add-before 'sanity-check 'use-dummy-backend + (lambda _ + ;; Without setting this, pystray tries to connect to + ;; X11 on import. + (setenv "PYSTRAY_BACKEND" "dummy")))))) + (native-inputs (list python-sphinx)) + (propagated-inputs (list python-pillow python-six python-xlib)) + (home-page "https://github.com/moses-palmer/pystray") + (synopsis "Create a system tray icon") + (description "This library allows you to create a system tray icon. + +It allows specifying an icon, a title and a callback for when the icon is +activated. The icon and title can be changed after the icon has been created, +and the visibility of the icon can be toggled.") + (license license:lgpl3))) + (define-public python-bitstring (package (name "python-bitstring")