From patchwork Sat Jan 9 14:45:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandros Theodotou X-Patchwork-Id: 26290 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 344FB27BC10; Sat, 9 Jan 2021 14:47:09 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 030E127BC0F for ; Sat, 9 Jan 2021 14:47:08 +0000 (GMT) Received: from localhost ([::1]:35738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyFWF-0005nG-4X for patchwork@mira.cbaines.net; Sat, 09 Jan 2021 09:47:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyFWA-0005n6-1k for guix-patches@gnu.org; Sat, 09 Jan 2021 09:47:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyFW9-0003FI-Qq for guix-patches@gnu.org; Sat, 09 Jan 2021 09:47:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyFW9-0007H3-OL for guix-patches@gnu.org; Sat, 09 Jan 2021 09:47:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45745] [PATCH] gnu: Add python-screenkey. Resent-From: Alexandros Theodotou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Jan 2021 14:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45745 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45745@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161020361027942 (code B ref -1); Sat, 09 Jan 2021 14:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jan 2021 14:46:50 +0000 Received: from localhost ([127.0.0.1]:51422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyFVr-0007GW-Ha for submit@debbugs.gnu.org; Sat, 09 Jan 2021 09:46:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:58102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyFVo-0007GN-7y for submit@debbugs.gnu.org; Sat, 09 Jan 2021 09:46:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyFVn-0005kX-Vn for guix-patches@gnu.org; Sat, 09 Jan 2021 09:46:40 -0500 Received: from mout02.posteo.de ([185.67.36.142]:55379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyFVl-0002i2-6F for guix-patches@gnu.org; Sat, 09 Jan 2021 09:46:39 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id A7B402400FB for ; Sat, 9 Jan 2021 15:45:31 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DCjSW05K6z6tmK for ; Sat, 9 Jan 2021 15:45:30 +0100 (CET) Message-ID: From: Alexandros Theodotou Date: Sat, 09 Jan 2021 14:45:30 +0000 User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.142; envelope-from=alex@zrythm.org; helo=mout02.posteo.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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, This patch adds python-screenkey. It almost works with: ``` guix environment -L . python-screenkey --ad-hoc python-screenkey -- screenkey ``` although it can't initialize GTK. I don't know how to fix this, if someone wants to take it from here please go ahead. Thanks, Alex From cd84aeecbcd370df5c45b077ac765b5f2e8070f4 Mon Sep 17 00:00:00 2001 From: Alexandros Theodotou Date: Sat, 9 Jan 2021 14:42:47 +0000 Subject: [PATCH] gnu: Add python-screenkey. * gnu/packages/python-xyz.scm (python-screenkey): New variable. --- gnu/packages/python-xyz.scm | 49 ++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 23e43b7e75..87d0ba89dc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -74,7 +74,7 @@ ;;; Copyright © 2020 Sebastian Schott ;;; Copyright © 2020 Alexandros Theodotou ;;; Copyright © 2020 Josh Marshall -;;; Copyright © 2020 Alexandros Theodotou +;;; Copyright © 2020, 2021 Alexandros Theodotou ;;; Copyright © 2020 Lars-Dominik Braun ;;; Copyright © 2020 Alex ter Weele ;;; Copyright © 2020 Matthew Kraai @@ -23451,3 +23451,50 @@ Qt applications.") "Pivy provides python bindings for Coin, a 3D graphics library with an Application Programming Interface based on the Open Inventor 2.1 API.") (license license:isc))) + +(define-public python-screenkey + (package + (name "python-screenkey") + (version "1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/wavexx/screenkey.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lsnkkvy9cijsalv12x746azab45xb958h00nf616kn91kiy5np1")))) + (build-system python-build-system) + (arguments + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-dlopen-paths + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((x11 (assoc-ref inputs "libx11")) + (xtst (assoc-ref inputs "libxtst"))) + (substitute* "Screenkey/xlib.py" + (("libX11.so.6") + (string-append x11 "/lib/libX11.so.6"))) + (substitute* "Screenkey/xlib.py" + (("libXtst.so.6") + (string-append xtst "/lib/libXtst.so.6"))) + #t)))))) + (inputs + `(("python-distutils-extra" ,python-distutils-extra) + ("python-tokenize-rt" ,python-tokenize-rt) + ("intltool" ,intltool) + ("libx11" ,libx11) + ("libxtst" ,libxtst) + ("gtk+" ,gtk+) + ("python-pygobject" ,python-pygobject) + ("python-pycairo" ,python-pycairo) + ("python-setuptools-git" ,python-setuptools-git))) + (home-page "https://www.thregr.org/~wavexx/software/screenkey/") + (synopsis + "Screencast tool to display pressed keys") + (description + "A screencast tool to display your keys inspired by Screenflick.") + (license license:gpl3+))) -- 2.29.2