From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0MsfJts/MmQUTAAASxT56A (envelope-from ) for ; Sun, 09 Apr 2023 06:32:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2HL9Jds/MmSHmgAAauVa8A (envelope-from ) for ; Sun, 09 Apr 2023 06:32:27 +0200 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 361AC3C0B7 for ; Sun, 9 Apr 2023 06:32:27 +0200 (CEST) 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681014747; a=rsa-sha256; cv=none; b=DVlls46EBZUheQOgQxC6+Q4tfuOFi0UJZ5Yg2iLAjX65+DkwUCfP0dwyKKDT22/MPZ3pVT i6gaw6wdgM5pns651Fvv1ymBJC5IG7o4yJulKEHIuzuc0KJW0JHIVNVPT0EE7NfFX4+cuo 7HEuy14bSN10CMbg4i/UpuiZju4bPagIECZs6dRFkF4Mjw6hasG10DJAgx+Jz3gsfa0owY QaOHchxAJgkFxUC2EymYLrvH3sWUT/VBTe043w4J0XBzHE6Rgb9V/QK6hYCGU+90QuAxfq Ge6JsHagt6pkRpUptvG0CbNWi/udpzG/r4z/aGi5Z4oTUhSyEg7JiQQ0yhZchg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=enH2hpfE; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681014747; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hi9+4QkJ0psyNPdCgDriB0pQWweWWg19b+CoBJHY/Xs=; b=VAnYyZfKIG+/B9m1hauYVR2BSItnGZ1g4TzTa6Wv0O6yPL6R/x5UHiHqTkfnqdntittrKZ MdDAxtNjDukVu5asDxTtBRlLA0PtGR/FQVvdSk6OpT4/wL3PpRqGpMEwr6p5CgkikasSMj GJHBeP9BLSNxDNpdEk0s7njVA6aFACZoQfko0q5YX+oPyqjRcKWEIV3k/pvoOQ/ohn7U9h jc98Q0fBA1vAkUZ8xcY+mZTdccGAocbXdtxU9anPYHlQdOE2MBWm912dNDIiUk1H2XHfYW XxHs5HC+1MQAu0QA+0HFiVnMtMtCKaAamMT3lEdemrGB+bBo4HwTEY9jELN2VQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=enH2hpfE; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.62 X-Spam-Score: -0.62 X-Migadu-Queue-Id: 361AC3C0B7 X-TUID: AVKIksm68CLN * 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))) -- 2.39.2