From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CCp1OvurTGLhIAEAgWs5BA (envelope-from ) for ; Tue, 05 Apr 2022 22:52:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uODFN/urTGJIwwAA9RJhRA (envelope-from ) for ; Tue, 05 Apr 2022 22:52:11 +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 864AA2ADFC for ; Tue, 5 Apr 2022 22:52:11 +0200 (CEST) Received: from localhost ([::1]:56536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbq9q-0006gP-6C for larch@yhetil.org; Tue, 05 Apr 2022 16:52:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbq9i-0006gD-BR for guix-patches@gnu.org; Tue, 05 Apr 2022 16:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34166) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbq9i-0002YC-3H for guix-patches@gnu.org; Tue, 05 Apr 2022 16:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nbq9h-0003wH-Ve for guix-patches@gnu.org; Tue, 05 Apr 2022 16:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54678] [PATCH v2] gnu: Add emacs-pyimport. References: <20220402025855.19353-1-jgart@dismail.de> In-Reply-To: <20220402025855.19353-1-jgart@dismail.de> Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Apr 2022 20:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54678 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54678@debbugs.gnu.org Cc: Maxime Devos , jgart Received: via spool by 54678-submit@debbugs.gnu.org id=B54678.164919190615113 (code B ref 54678); Tue, 05 Apr 2022 20:52:01 +0000 Received: (at 54678) by debbugs.gnu.org; 5 Apr 2022 20:51:46 +0000 Received: from localhost ([127.0.0.1]:56296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbq9S-0003vh-I8 for submit@debbugs.gnu.org; Tue, 05 Apr 2022 16:51:46 -0400 Received: from mx1.dismail.de ([78.46.223.134]:19960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbq9N-0003vL-5V for 54678@debbugs.gnu.org; Tue, 05 Apr 2022 16:51:45 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 2ff30cc6; Tue, 5 Apr 2022 22:51:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=3wOcM+atOt4VoRjM0k3pckhs9n86jHQsoM/AACcKi78=; b= CQoWuz52cjXd90NNX81Dd6b0cE9/3f+W324C59qWExZlZICguQ8j0ilEEzqSg/q4 kFOOMtpR+98kWqlE42k6n2Bo+hRdvvGP+xxm7/RANviZMLifh7iStBbpB6ZAL3SS UUGkxF/2cZReo5a+KWioOl89PGrpxOLedLX6VoqBNTwBjN8YlpMaTeyA2RyF1GXi z8pKVPhRwMxco0XIQhHNfm146C2BEaSO6Lo4TmfKkCWdR0fHJc68MCx3N7CvV97E 2P4dEijBqQpoZDJhCJJVNmPIANKc5IvYqT43mbBfdq86O0C1YRNa1qTciTHPIpHf OcGZhYgFytfEkmhuU0qgWw== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 5006e1c4; Tue, 5 Apr 2022 22:51:34 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id d0082b2d; Tue, 5 Apr 2022 22:51:33 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 1c47c63f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 5 Apr 2022 22:51:33 +0200 (CEST) Date: Tue, 5 Apr 2022 16:48:40 -0400 Message-Id: <20220405204839.19146-1-jgart@dismail.de> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 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" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches From: jgart via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649191931; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=u6Tq69pmyBaLbxqNYVVyLyEfXq3Q2dgEPS9Xprw8u5E=; b=kQB7rynpY6JxfzmYixzm2Iv4aoi0RoWe0My2Ah3HslJHgz8mPdY1n6NAfZOSqbUFMB0Qn4 phR8w+C/EaxH7JtcjTAebTny+TwjmQY2xI99nxyAf1qPzE4U4ngOQM0nZJ10DnWjF+1NR3 tk+sp8N55cjgRI/NrPGLJcfF74b+Xjwbof1jIcYgFK9kv3JTtqZANM2q6S6AfPguLMVT0E SbK5/mFHSsYwe9ErLJOBDh75S8IyZylaIxfTAhx+F+8pAA6GwCq7BLHhtsWcXMGgkoDGMI LrIS7QGxmqJK3nnA6Tc2ER10dthsudzRdeDP+SOCBwBaOyVvTpfegvczTte3Sg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649191931; a=rsa-sha256; cv=none; b=qy9AQ+hurxuKB7ixWLsjQxCmXV6Yqwonm22P/tUoA0lNd8Ng1mNs77V55oF0Ftt++JjjAJ oMv+FC9OXBKjTGHYqZvtxeaaH2NgwRqbwbwu8wZz/z6CLD2gFHFuUJtgICLtGz5NfGgxM7 qhpM/quF6cQQ6IjNgUdsVZgHXqZB0wFsGnkEoGnZN+bAc3ZhPM8rqicPUqC7NF3JIPu6aw fCJN21WZu4pOar/NWfyoIkQe0uWjT2znsQL+5Z3qYAAr3rumQrP8/ikkykquaxhuqZUbLp 8CpuQXHjEKLmgvKYKfxShKRe/fu0NTF9FsxUOUM0r5UvukDyu+1sbpm7gPqWbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=CQoWuz52; dmarc=pass (policy=none) header.from=gnu.org; 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: -4.37 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=CQoWuz52; dmarc=pass (policy=none) header.from=gnu.org; 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: 864AA2ADFC X-Spam-Score: -4.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: qa3Tq3FQc8N+ * gnu/packages/emacs-xyz.scm (emacs-pyimport): New variable. Hi Maxime, Here's a v2 with your suggestions. Thanks for the code review. all best, jgart --- gnu/packages/emacs-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index bc9a9f1c28..dcd1f07916 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -30828,6 +30828,43 @@ (define-public emacs-org-modern headlines, keywords, tables and source blocks.") (license license:gpl3+))) +(define-public emacs-pyimport + (let ((commit "a6f63cf7ed93f0c0f7c207e6595813966f8852b9") + (revision "0")) + (package + (name "emacs-pyimport") + (version (git-version "1.1" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/Wilfred/pyimport") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1q5gqhvh4zq5dy8vns694warcz48j1hdnxg16sjck4gsi9xivbvs")))) + (build-system emacs-build-system) + (inputs + (list python-pyflakes)) + (propagated-inputs + (list emacs-dash emacs-s emacs-shut-up)) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-pyflakes-executable + (lambda* (#:key inputs #:allow-other-keys) + (let ((pyflakes (search-input-file inputs "/bin/pyflakes"))) + (make-file-writable "pyimport.el") + (substitute* "pyimport.el" + (("\"pyflakes") + (string-append "\"" pyflakes))))))))) + (home-page "https://github.com/Wilfred/pyimport") + (synopsis "Manage Python imports from Emacs") + (description +"@code{emacs-pyimport} manages python imports from Emacs via @code{python-pyflakes}.") + (license license:gpl3+)))) ; License is in pyimport.el + (define-public emacs-osm (package (name "emacs-osm") -- 2.34.0