From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AB7oFyvv/GH7XwEAgWs5BA (envelope-from ) for ; Fri, 04 Feb 2022 10:17:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CBaMFCvv/GHhSAEAauVa8A (envelope-from ) for ; Fri, 04 Feb 2022 10:17:31 +0100 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 8D1CF20805 for ; Fri, 4 Feb 2022 10:17:30 +0100 (CET) Received: from localhost ([::1]:59900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFuif-0006Yy-HV for larch@yhetil.org; Fri, 04 Feb 2022 04:17:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFu2c-0003Gf-Gk for guix-patches@gnu.org; Fri, 04 Feb 2022 03:34:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36609) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFu2c-00075J-4a for guix-patches@gnu.org; Fri, 04 Feb 2022 03:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFu2b-00049O-Sp for guix-patches@gnu.org; Fri, 04 Feb 2022 03:34:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53772] [PATCH] gnu: Add emacs-blacken. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Feb 2022 08:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53772 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: jgart , 53772@debbugs.gnu.org Received: via spool by 53772-submit@debbugs.gnu.org id=B53772.164396362215922 (code B ref 53772); Fri, 04 Feb 2022 08:34:01 +0000 Received: (at 53772) by debbugs.gnu.org; 4 Feb 2022 08:33:42 +0000 Received: from localhost ([127.0.0.1]:58739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFu2H-00048k-Qp for submit@debbugs.gnu.org; Fri, 04 Feb 2022 03:33:42 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:25735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFu2E-00048Z-SI for 53772@debbugs.gnu.org; Fri, 04 Feb 2022 03:33:40 -0500 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Jqphv38t8z1LZWr; Fri, 4 Feb 2022 09:33:34 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4Jqphv38t8z1LZWr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1643963615; bh=rQwvFQk2Iu9oKn6iuIPkB2RYsFwvURHTi+nBjL8y4GE=; h=Subject:From:To:Date:In-Reply-To:References:From; b=TLEaj9lm7XxQd095fTHR5mb4RwDz7WuINaahXgaR+U6EtoCPEpp7MDb3Onijmgvfo okYBIQ8x0IxfvOW6syFsBNWqEfwe2Zzt3g6PKUa/4fHLeWdGRCLtchKpwq7r5oNlG+ i2iVqClWemQdK5ArRF4h/pPy2tMx20lkYCpBU6fY= Message-ID: <28491a2865d9d2a700a37ae315bdfed597931a72.camel@ist.tugraz.at> From: Liliana Marie Prikler Date: Fri, 04 Feb 2022 09:33:33 +0100 In-Reply-To: <20220204065153.14445-1-jgart@dismail.de> References: <20220204065153.14445-1-jgart@dismail.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643966251; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=rQwvFQk2Iu9oKn6iuIPkB2RYsFwvURHTi+nBjL8y4GE=; b=MHZS9p4WFsVpqV5qFELfyvdD2IxeeMfEW/YkyCXZJd/DMoIFgKB5KAEp6KmwJxENTFCPBq bgqBx7Gb8voylI8xbUIfM1VaxDbtEYOcTVlatRrLRN6V9DtyLmsKb1d6fPtRVRyGGgsdqL d+hNT+VdQzYtazCXX2uichVVrmJSiPqhaFTDPc+poKAaD8kC83PP99fJNexpeLY5gf9Nss QI7i4giABTX0ix/dM/HkXTkuSBlinMWX3REk2JadZm9q/zNvY6WgHItJsI8VC8lcT1h0Dy M6OydRmFWFJ3ScYJnP2AiEFDGButTsEdkG6HdI8PUq3z4gnnEh3viVeKMfU23A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643966251; a=rsa-sha256; cv=none; b=aTRc2KevbzrOs/hjhiQGmdggHySzmB8sA4DckV7pdZ+2sCFPlf8xjRSwZXx7YR9oqkP4tg tYGG2qzr4+eiSuKtRbdEXMlgimj05c5I9lWkCMkBni9Z34VnHjc+L0AbxQ1uwxGPdeOf+Z fie/PxXSOo7Y9CTY9S610fGo1xgwBYRbjG2sNKpmd5l4rgieb2F3ERAEaS5udTKFKU+oef mRtoaGvAzqFD/EGuMgDngtGNnWy1jq5KxxFH5LwjUNSufB31jGk6pHkzvep5lqhWhaGHSL NY4zn6aXnFTrqGVc6hgOtWznxI0VNXSDo/NuLZgCjp0IJUTvaXRt776+/LDzEA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=TLEaj9lm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (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-Spam-Score: -2.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=TLEaj9lm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (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-Queue-Id: 8D1CF20805 X-Spam-Score: -2.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: DfmGso8T/jtd Am Freitag, dem 04.02.2022 um 01:51 -0500 schrieb jgart: > * gnu/packages/emacs-xyz.scm (emacs-blacken): New variable. > --- >  gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++ >  1 file changed, 24 insertions(+) > > diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm > index 521d003a6b..4d6e18f8ba 100644 > --- a/gnu/packages/emacs-xyz.scm > +++ b/gnu/packages/emacs-xyz.scm > @@ -29822,6 +29822,30 @@ (define-public emacs-multitran >  to the @url{https://multitran.com} online dictionary.") >      (license license:gpl3+))) >   > +(define-public emacs-blacken > +  (package > +    (name "emacs-blacken") > +    (version "0.2.0") > +    (source > +     (origin > +       (method git-fetch) > +       (uri > +        (git-reference > +         (url "https://github.com/pythonic-emacs/blacken") > +         (commit (string-append "v" version)))) > +       (file-name (git-file-name name version)) > +       (sha256 > +        (base32 > "0pf9yllx0h78m925sdrg6hbv54ky2pi7cpkdsnx891qjsahvjnpy")))) > +    (build-system emacs-build-system) > +    (inputs > +      (list python-black)) > +    (home-page "https://github.com/pythonic-emacs/blacken") > +    (synopsis "Python Black for Emacs") > +    (description > +"Use the @command{python} @command{black} package to reformat > +@command{python} buffers.") > +    (license license:gpl3))) > + >  (define-public emacs-kibit-helper >    (package >      (name "emacs-kibit-helper") As with all command-line utility wrappers, take care to make it actually refer to the store path of said utility and don't just assume it exists because it does at build time. In your case  (emacs-substitute-variables "blacken.el"  ("blacken-executable" (search-input-file inputs "/bin/blacken"))) ought to do the drill, but be warned that this is me writing untested Scheme from memory. Cheers