From patchwork Sun Apr 9 04:31:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fredrik Salomonsson X-Patchwork-Id: 49034 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 698651748A; Sun, 9 Apr 2023 05:32:28 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 0969C17434 for ; Sun, 9 Apr 2023 05:32:27 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plMiz-0006nF-G1; Sun, 09 Apr 2023 00:32:21 -0400 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 1plMil-0006kN-4G for guix-patches@gnu.org; Sun, 09 Apr 2023 00:32:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1plMij-0008Pp-ET for guix-patches@gnu.org; Sun, 09 Apr 2023 00:32:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1plMij-0004ie-Am for guix-patches@gnu.org; Sun, 09 Apr 2023 00:32:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42682] [PATCH v2 8/9] gnu: Add qmk-cli. Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Apr 2023 04:32:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42682 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42682@debbugs.gnu.org Cc: Fredrik Salomonsson Received: via spool by 42682-submit@debbugs.gnu.org id=B42682.168101472418122 (code B ref 42682); Sun, 09 Apr 2023 04:32:05 +0000 Received: (at 42682) by debbugs.gnu.org; 9 Apr 2023 04:32:04 +0000 Received: from localhost ([127.0.0.1]:60044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plMih-0004i4-FV for submit@debbugs.gnu.org; Sun, 09 Apr 2023 00:32:04 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plMie-0004gl-JA for 42682@debbugs.gnu.org; Sun, 09 Apr 2023 00:32:01 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 130D8240078 for <42682@debbugs.gnu.org>; Sun, 9 Apr 2023 06:31:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681014715; bh=tSL9XHExhD4BvJRASs4t3QV/uHcVLG39EnGvmnHpGx0=; h=From:To:Cc:Subject:Date:From; b=enH2hpfErqjqtv4lPhDsrMVmGdPKNzHVOyzG/LtBJzxaSmlQYZ07B461DKMbQmcq3 KOEZgHI1ZgADZxqI6/IcXnefepp4bzs0U7fIJcd6/2YL/KnojYwi7apohmOQlFpr1o Kzyrc1ckRcqPUEiyTzr3e8xg0NQWoBPLnbhy7MFBbKi+YdymfKTDYvjyCYFnJYcnR0 OvOwhGMpzU66lcuzUToEqZL2UDlzDKPvCYJWEUJU7nZw35KyoT1FXk7kJ70UGNU5UO p1NqqLF0SbeSuQhtW60zVViUIRElqe33S/ZtT5LaGuQ7EWMpd+9z2Nsf2uXDrA5mzA ZFjYLA6y/qDGg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PvK222nSXz6tw1; Sun, 9 Apr 2023 06:31:54 +0200 (CEST) From: Fredrik Salomonsson Date: Sun, 9 Apr 2023 04:31:15 +0000 Message-Id: <20230409043116.13244-9-plattfot@posteo.net> In-Reply-To: <20230409043116.13244-1-plattfot@posteo.net> References: <20230409043116.13244-1-plattfot@posteo.net> 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/hardware.scm (qmk-cli): New variable. --- gnu/packages/hardware.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 299d7b96a1..1f8be61ca5 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2022 Efraim Flashner ;;; Copyright © 2023 Spencer Skylar Chan +;;; Copyright © 2023 Fredrik Salomonsson ;;; ;;; This file is part of GNU Guix. ;;; @@ -76,6 +77,8 @@ (define-module (gnu packages hardware) #:use-module (gnu packages protobuf) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) + #:use-module (gnu packages python-build) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) @@ -90,10 +93,12 @@ (define-module (gnu packages hardware) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) #:use-module (guix build-system perl) + #:use-module (guix build-system pyproject) #:use-module (guix build-system python) #:use-module (guix download) #:use-module (guix gexp) @@ -1359,3 +1364,47 @@ (define-public libcpuid string, code name and other information from x86 CPU. This library is not to be confused with the @code{cpuid} command line utility from package @code{cpuid}.") (license license:bsd-2)))) + +(define-public qmk-cli + (package + (name "qmk-cli") + (version "1.1.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "qmk" version)) + (sha256 + (base32 + "1619q9v90740dbg8xpzqlhwcasz42xj737803aiip8qc3a7zhwgq")))) + (build-system pyproject-build-system) + (arguments + (list #:tests? #f)) ; test removed in pypi + (inputs + (list + python-hid + python-hjson + python-jsonschema-next + python-milc + python-pillow + python-pygments + python-pyserial + python-pyusb + python-dotty-dict + python-tox + python-wheel)) + (home-page "https://qmk.fm") + (synopsis "Program to help users work with QMK Firmware") + (description + "This package provides a @acronym{CLI, command line interface} based +program to help users work with QMK Firmware. Where QMK Firmware is +an open firmware for custom keyboards, e.g. Planck, ErgoDox, Corne and +many more. This @acronym{CLI} program is mainly used for building the +QMK firmware, but also has some other convenience utilities. To be +able to build a firmware also include the following packages: +@code{avr-toolchain} and either @code{dfu-programmer} or +@code{avrdude} depending on what microcontroller(s) is/are used for +the keyboard. To be able to clone the QMK Firmware project using +@command{qmk clone} include the @code{git} package. It is highly +recommended to setup udev rules to avoid running this as root when +flashing the firmware, see @code{qmk-udev-rules} and +@code{udev-service-type}.") + (license license:expat)))