From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GDi6CZpaCWCnBgAA0tVLHw (envelope-from ) for ; Thu, 21 Jan 2021 10:42:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0C+CBZpaCWBhZAAAbx9fmQ (envelope-from ) for ; Thu, 21 Jan 2021 10:42:34 +0000 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 761A79403E6 for ; Thu, 21 Jan 2021 10:42:33 +0000 (UTC) Received: from localhost ([::1]:38468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2XQ8-0005CZ-B7 for larch@yhetil.org; Thu, 21 Jan 2021 05:42:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2XPg-0005BX-E4 for guix-patches@gnu.org; Thu, 21 Jan 2021 05:42:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45373) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l2XPe-0003ZA-GJ for guix-patches@gnu.org; Thu, 21 Jan 2021 05:42:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l2XPe-000558-CQ for guix-patches@gnu.org; Thu, 21 Jan 2021 05:42:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46015] [PATCH] Add xkeysnail. Resent-From: Z572 <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Jan 2021 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46015 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46015@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161122566919466 (code B ref -1); Thu, 21 Jan 2021 10:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jan 2021 10:41:09 +0000 Received: from localhost ([127.0.0.1]:56917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2XOg-00053i-MS for submit@debbugs.gnu.org; Thu, 21 Jan 2021 05:41:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:60798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1l2XOf-000536-2n for submit@debbugs.gnu.org; Thu, 21 Jan 2021 05:41:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <873216071@qq.com>) id 1l2XOe-0004wc-S4 for guix-patches@gnu.org; Thu, 21 Jan 2021 05:41:00 -0500 Received: from out203-205-221-240.mail.qq.com ([203.205.221.240]:36533 helo=qq.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <873216071@qq.com>) id 1l2XOV-0002tP-SB for guix-patches@gnu.org; Thu, 21 Jan 2021 05:40:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1611225630; bh=qv0hdE+vTBDqSWz+ECKnRLsa13tsDHYVKJKtQkix/kA=; h=From:To:Subject:Date; b=cj3gkYiGdev8agf4X+/+hLM7D4R9GZkaPONCQYo3hV5ed8pieOfIJj6CHb5ywokuV HXtk6m3YCOjUMP5mi3mHJOvRnmTtetLj6LCf7+bOb+Xom7b9VEwTn3ZxeY24iGN3o2 67JTSQY0OOnCO3qoSPtLetRdHFjhMX2nD8ULt3iU= Received: from Z572 ([112.10.77.123]) by newxmesmtplogicsvrsza5.qq.com (NewEsmtp) with SMTP id A1C1709E; Thu, 21 Jan 2021 18:40:28 +0800 X-QQ-mid: xmsmtpt1611225628tcvoc6or4 Message-ID: X-QQ-XMAILINFO: NOt5nGX7PYiGaxJ2fGOPBhnYk4uGYKPbYgxjVpkoy4L4i8sirvm8/6OkSulo0L CdM/r0EnMpRq50pyGRB/Bj7YNQ7V80LiH06HCvjCMJULWOoGpOxxSD/bAOrD7XWZKjAiAdwgP/Cg r+iiGUkpw5sSbSwRI0Zpg4QQGDidlbbIgUtXYn48EXv2nN6ZXKeHqezygapWkLNPQRh+ZR7wC03M JlE97vNwXoIkT1E2wQvh4nSFNt3QwR78DvIxlL5rUm8WJtwm3qYW9TsWdzjZ+qRdZ9PGo+MUKScl 28mVUIi6d90E8lKRsnRIr3kXPOu/3ji9NrLuNL+sVw4kuTFhSZpO9ntzDOTcNR9uPoHhWLC/OxxK iBr4kNxCSTPPEedt2Fc7ewijAYy7WeJJgUMTlVV9F+AsLq3ZpSoOuE6rtSTvedgbFDr5TK5elxfP pTqDx/fRQGR95rOhnbxXtIrXsB84qfCFK17ZHXsHoX8UUuVi3iLvKEwTkDttRqE/279i7/HM7Ck/ hCF4Q7ytWp0SKvkL/2vSqTA7eLFO8YB70LBiTm6SQ3aYknlGpghFtScZtc3LLV/C87UbHyTTMb0q 0SPZ9y4+McNT59Oe89RtpOdGW4efpb2+PvXWuz33itUMP2q3uQgLIDBsqUhLqwcFij41FxTw6/+w Jg/tLYtuT0ElWR From: Z572 <873216071@qq.com> Date: Thu, 21 Jan 2021 18:40:27 +0800 Message-ID: <87k0s6k1yc.fsf@qq.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=203.205.221.240; envelope-from=873216071@qq.com; helo=qq.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 3.65 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=cj3gkYiG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=qq.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 761A79403E6 X-Spam-Score: 3.65 X-Migadu-Scanner: scn1.migadu.com X-TUID: DpjLoxkZZsBk --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-python-inotify-simple.patch Content-Transfer-Encoding: quoted-printable >From c8ffb0e96851e5642fa872f5ffc20d9e56d30fb7 Mon Sep 17 00:00:00 2001 From: Zheng Junjie <873216071@qq.com> Date: Thu, 21 Jan 2021 18:36:16 +0800 Subject: [PATCH 1/2] gnu: Add python-inotify-simple. --- gnu/packages/python-xyz.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d08e23936c..81d7eb48c7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -93,7 +93,7 @@ ;;; Copyright =C2=A9 2020 Diego N. Barbato ;;; Copyright =C2=A9 2020 Leo Prikler ;;; Copyright =C2=A9 2019 Kristian Trandem -;;; Copyright =C2=A9 2020 Zheng Junjie <873216071@qq.com> +;;; Copyright =C2=A9 2020, 2021 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -6726,6 +6726,37 @@ need to use the older and less efficient @code{pkg_r= esources} package.") finding unresolved symbols in Python code and their corresponding imports.= ") (license license:bsd-3))) =20 +(define-public python-inotify-simple + (package + (name "python-inotify-simple") + (version "1.3.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/chrisjbillington/inotify_simple") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dv9svrcz31acyq9smjlnw75xv3x5wpn5h6s8j8h0vrqyl3d7l05")))) + (build-system python-build-system) + (home-page + "https://github.com/chrisjbillington/inotify_simple") + (synopsis "Simple wrapper around inotify library") + (description + "@code{inotify-simple} is a simple wrapper around inotify library.") + (license license:bsd-3) + (properties `((python2-variant . ,(delay python2-inotify-simple)))))) + +(define-public python2-inotify-simple + (let ((base (package-with-python2 + (strip-python2-variant python-inotify-simple)))) + (package + (inherit base) + (propagated-inputs + `(("python2-enum34" ,python2-enum34) + ,@(package-propagated-inputs base)))))) + (define-public python-jaraco-packaging (package (name "python-jaraco-packaging") --=20 2.30.0 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0002-gnu-Add-xkeysnail.patch Content-Transfer-Encoding: quoted-printable >From ff3e5c516f7cae4cff3037cde5d36d7f415727dd Mon Sep 17 00:00:00 2001 From: Zheng Junjie <873216071@qq.com> Date: Thu, 21 Jan 2021 18:37:33 +0800 Subject: [PATCH 2/2] gnu: Add xkeysnail. --- gnu/packages/xdisorg.scm | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 26660b8bfa..9522a2ae23 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -42,7 +42,7 @@ ;;; Copyright =C2=A9 2020 Gabriel Arazas ;;; Copyright =C2=A9 2020 James Smith ;;; Copyright =C2=A9 2020 B. Wilson -;;; Copyright =C2=A9 2020 Zheng Junjie <873216071@qq.com> +;;; Copyright =C2=A9 2020, 2021 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -326,6 +326,35 @@ application.") (home-page "https://hluk.github.io/CopyQ/") (license license:gpl3+))) =20 +(define-public xkeysnail + (package + (name "xkeysnail") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "xkeysnail" version)) + (sha256 + (base32 + "1xyqp6yqxcwmxaqj86qcsiz0ly7bwr0a2w835myz909irhip3ngf")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ;test need /dev/uinput + (propagated-inputs + `(("python-six" ,python-six) + ("python-appdirs" ,python-appdirs) + ("python-evdev" ,python-evdev) + ("python-inotify-simple" ,python-inotify-simple) + ("python-xlib" ,python-xlib))) + (home-page "https://github.com/mooz/xkeysnail") + (synopsis + "Keyboard remapping tool for X environment") + (description + "A X environment keyboard remapping tool. high-level and flexible rem= apping +mechanisms. Runs in low-level layer (evdev and uinput), making remapping = work +in almost all the places.") + (license license:gpl3))) + (define-public xclip (package (name "xclip") --=20 2.30.0 --=-=-=--