From patchwork Fri Mar 1 11:32:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adriel Dumas--Jondeau X-Patchwork-Id: 61260 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 533F727BBE9; Fri, 1 Mar 2024 11:34:28 +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=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 9C4E627BBE2 for ; Fri, 1 Mar 2024 11:34:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rg198-0004c7-OP; Fri, 01 Mar 2024 06:33:46 -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 1rg190-0004bI-RH for guix-patches@gnu.org; Fri, 01 Mar 2024 06:33:40 -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 1rg18y-0002Yk-K0; Fri, 01 Mar 2024 06:33:36 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rg19O-0006hJ-IB; Fri, 01 Mar 2024 06:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67999] [PATCH] gnu: Add python-kalamine. References: In-Reply-To: Resent-From: Adriel Dumas--Jondeau 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: Fri, 01 Mar 2024 11:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67999 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67999@debbugs.gnu.org Cc: 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 67999-submit@debbugs.gnu.org id=B67999.170929279725694 (code B ref 67999); Fri, 01 Mar 2024 11:34:02 +0000 Received: (at 67999) by debbugs.gnu.org; 1 Mar 2024 11:33:17 +0000 Received: from localhost ([127.0.0.1]:36194 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rg18e-0006gM-Rk for submit@debbugs.gnu.org; Fri, 01 Mar 2024 06:33:17 -0500 Received: from layka.disroot.org ([178.21.23.139]:34164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rg18b-0006gC-8K for 67999@debbugs.gnu.org; Fri, 01 Mar 2024 06:33:15 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0F6E240E05 for <67999@debbugs.gnu.org>; Fri, 1 Mar 2024 12:32:44 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4QihVp5N1Uco for <67999@debbugs.gnu.org>; Fri, 1 Mar 2024 12:32:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1709292763; bh=JQ+CFF5ceLlISb3TOF1hVAqbcP2vuijKRFLQr+4Q3C0=; h=From:To:Subject:Date; b=cNyTN104SvsLKSktZQrpOuYKsEbXcpavfrfSEF7bn6KbyKR5jgJboSHWgXHJxc1rs sJNoktJNIWK43IH25sTgvstCfpWgxqhytvMrQgi8I9r44LvPYeJ11TWNstShw1pQaU 74BXK2IRLtYKgY0nskowmz6eUnaniKj6BETcRll/6J6hpI/pQOdyettL4gR9qzCNWi 5QeftAjyxlpTJKAFtFWz7kGpat19py0jd9LWdiOx3IG9zyr6rAbaA9ujhkXOOOYVW6 VB9NQ0Ebskubvkh3k+oA8SLIiEc0HHJ8FG8LCnjj0VjfzW55aR+O97hPAMl0gjOgkv b7AMDbS/0tuXA== Date: Fri, 1 Mar 2024 12:32:22 +0100 Message-ID: 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: , Reply-to: Adriel Dumas--Jondeau X-ACL-Warn: , Adriel Dumas--Jondeau via Guix-patches X-Patchwork-Original-From: Adriel Dumas--Jondeau via Guix-patches via From: Adriel Dumas--Jondeau 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-kalamine): New variable. Change-Id: If13f258440bb35973b3d79a87fea68e4708845bf --- gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Hi o/ Thank you for your answers! Here's a squashed version of previous patches, as if V1 never existed in the first place. Does that looks good to you? base-commit: 203344cc37c8a7df1ec1454381b5069d53ce7f9e prerequisite-patch-id: cefc174692b72660bf5ed4c03442f33dbaf6e784 prerequisite-patch-id: 6b1015959d122056b883e766306b0ff8ba30bde9 prerequisite-patch-id: a3116f7908bc9fdb237e4cde52260856b083596d prerequisite-patch-id: db1d3d945579284d401944b18fcbc506a000714f prerequisite-patch-id: 84bff5e4689979f565315edf96250ccc367f8fb8 prerequisite-patch-id: bd69d4115bc86b7d2739e9890625788f1fa5a006 prerequisite-patch-id: 0834ca6f4e7f1ed91b5dcb679096a953a6e36273 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 29e2bfd222..64060d44e3 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -6327,6 +6327,43 @@ (define-public autokey flexibility and power of the Python language.") (license license:gpl3+))) +(define-public python-kalamine + (package + (name "python-kalamine") + (version "0.30") + (source + (origin + (method url-fetch) + (uri (pypi-uri "kalamine" version)) + (sha256 + (base32 "1aqwfp0m2fr9miwh0d8ljmb58k4mw7bp9bzn5fk3kyj2d6zr0cxg")))) + (build-system pyproject-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (apply invoke + (cons* "python" "-m" "kalamine.cli" "make" + (find-files "layouts" "\\.toml"))) + (invoke "pytest" "-vv" "tests"))))))) + (propagated-inputs (list python-click python-livereload python-lxml + python-pyyaml python-tomli python-hatchling)) + (native-inputs (list python-black + python-isort + python-mypy + python-pytest)) + (home-page "https://github.com/OneDeadKey/kalamine") + (synopsis "A cross-platform Keyboard Layout Maker") + (description "Kalamine provides a CLI to create advanced keyboard layout +for Windows (@file{.ahk} or @file{.klc} files), MacOS (@file{.keylayout} files) +and GNU/Linux (@file{.xkb_custom} or @file{.xkb} files) from a textual, +portable description. It also provides @command{xkalamine} to install XKB +files on GNU/Linux in either @file{/usr/share/X11/xbk} or the rootless +user-only equivalent @file{.config/xkb}.") + (license license:expat))) + (define-public python-dm-tree (package (name "python-dm-tree")