From unknown Sat Jun 14 18:05:37 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#60067] [PATCH] gnu: Add emacs-pydoc. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Dec 2022 15:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60067 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60067@debbugs.gnu.org Cc: jgart X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167103004914735 (code B ref -1); Wed, 14 Dec 2022 15:01:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Dec 2022 15:00:49 +0000 Received: from localhost ([127.0.0.1]:39754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5TFY-0003oO-KJ for submit@debbugs.gnu.org; Wed, 14 Dec 2022 10:00:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:34512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5TFW-0003hn-GT for submit@debbugs.gnu.org; Wed, 14 Dec 2022 10:00:47 -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 1p5TFR-0001a2-Rf for guix-patches@gnu.org; Wed, 14 Dec 2022 10:00:44 -0500 Received: from mx1.dismail.de ([78.46.223.134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5TFP-0002C3-1T for guix-patches@gnu.org; Wed, 14 Dec 2022 10:00:41 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 19420cd8 for ; Wed, 14 Dec 2022 16:00:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=8sqkTdOjT6i7g+hqwS7ho RIf9scLmWNKh+SO/AdsQ0A=; b=nt3kX4BBeNBi5lA1eO5vhfUhKoJ48rFGkMx82 LV0/92bU+b9Lhb/B1TCeXbmLwv5mitismle+rJwV6x2JjQGKY3KLyoGtIcdD72El oSvF2i29c8sfSZi4xo5qcXTcJ9acrPIqmUj8NCe03JtbDIrpF54g5/zHVhoCZT/Q kfH/PXatttr8vCORzPKolPwdcW3cyqHpBhbAo3Z2j9u0NAbH48wJBN6qp4ByNWnU QzAb2zirhCNUCut47vnfNnBuSKrH06uYbn+fKB53Kd8KovNol6VXqnQXihAgfiTq 2kmPRhSgAt8lkPkVaq0W9Ee57kWUXEa1MU54n9DLKuQvcjAoQ== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id fea65cf1 for ; Wed, 14 Dec 2022 16:00:31 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 0dd22202 for ; Wed, 14 Dec 2022 16:00:31 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 69858f5a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 14 Dec 2022 16:00:30 +0100 (CET) From: jgart Date: Wed, 14 Dec 2022 09:00:06 -0600 Message-Id: <20221214150006.5008-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * gnu/packages/emacs-xyz.scm (emacs-pydoc): New variable. --- gnu/packages/emacs-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 3286928f8d..63e080c44b 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -196,6 +196,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (gnu packages linux) #:use-module (gnu packages libevent) #:use-module (gnu packages lisp-xyz) + #:use-module (gnu packages lsof) #:use-module (gnu packages lua) #:use-module (gnu packages music) #:use-module (gnu packages version-control) @@ -8637,6 +8638,46 @@ (define-public emacs-popper windows Emacs produces, while still keeping them within arm’s reach.") (license license:gpl3+)))) +(define-public emacs-pydoc + ;; https://github.com/statmobile/pydoc/issues/31 + (let ((commit "c8b667e17bfe3e63221f822c5c4d58c8fb4fea90") + (revision "0")) + (package + (name "emacs-pydoc") + (version (git-version "0.2" revision commit)) + (source + (origin + (uri (git-reference + (url "https://github.com/statmobile/pydoc") + (commit commit))) + (method git-fetch) + (sha256 + (base32 "082ar5w28dknaa63mf587vdzr78xlnvh8lbxqq3hk6qa2c72akam")) + (file-name (git-file-name name version)))) + (build-system emacs-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-python-executable + (lambda* (#:key outputs #:allow-other-keys) + (emacs-substitute-variables "pydoc.el" + ("pydoc-python-command" + (search-input-file outputs "bin/python"))))) + (add-after 'unpack 'patch-lsof-executable + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "pydoc.el" + (("\"lsof") + ;; Replace removed double quote in parsing of lsof executable. + (string-append "\"" (search-input-file inputs "bin/lsof"))))))))) + (inputs (list lsof python-wrapper)) + (propagated-inputs (list python-jedi)) + (home-page "https://github.com/statmobile/pydoc") + (synopsis "Navigate Python documentation in Emacs") + (description "This package provides an Emacs mode for navigating +Python documentation with @code{pydoc} in Emacs.") + (license license:gpl3+)))) + (define-public emacs-python-black (package (name "emacs-python-black") -- 2.38.1 From unknown Sat Jun 14 18:05:37 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#60067] [PATCH v2] gnu: Add emacs-pydoc. References: <20221214150006.5008-1-jgart@dismail.de> In-Reply-To: <20221214150006.5008-1-jgart@dismail.de> Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Dec 2022 15:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60067 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60067@debbugs.gnu.org Cc: jgart Received: via spool by 60067-submit@debbugs.gnu.org id=B60067.167103032515577 (code B ref 60067); Wed, 14 Dec 2022 15:06:02 +0000 Received: (at 60067) by debbugs.gnu.org; 14 Dec 2022 15:05:25 +0000 Received: from localhost ([127.0.0.1]:39777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5TK0-000439-IK for submit@debbugs.gnu.org; Wed, 14 Dec 2022 10:05:24 -0500 Received: from mx1.dismail.de ([78.46.223.134]:28444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5TJv-00042w-Bf for 60067@debbugs.gnu.org; Wed, 14 Dec 2022 10:05:23 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id f4ccc5af for <60067@debbugs.gnu.org>; Wed, 14 Dec 2022 16:05:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=d80aT/0wn1/4H0pTfvdZ1 HxnOilJp26hSoj27p3MSB0=; b=nlm263YlDK+IGx3es56SI9YUNtkQ7gf/75ZUS /8Uqm9SBaCOZy+3wUYq/QZqF0rfWjIFM/tuCXS4gTSrbKJBv1F+5r7yBYs0Kgb+V qJ8DzvchoElvHncm7EjbA4jJHbQUHoiNSnW8uXT0rLgLL+nbnPN15Jb5FDdSiyg7 dB0I8Bn8pUzkSGV88q6OI4XV1Ii/89m4Fp8DJrhtRKrEEOncJahxcLEVTxl8yhnx yGO2REHRy45/RMyv+OwOwSgdYyBRMfBYB7Q2N90xz3OmIE/Zh2oVbZhWzr6zdzr3 IFv3tsQGzfgRa7R0X+JdwkJMrlW9S+AC3aL/xHSjtQtFLwPig== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 437fc147 for <60067@debbugs.gnu.org>; Wed, 14 Dec 2022 16:05:12 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 0b81856a for <60067@debbugs.gnu.org>; Wed, 14 Dec 2022 16:05:12 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 61c65d88 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 14 Dec 2022 16:05:12 +0100 (CET) From: jgart Date: Wed, 14 Dec 2022 09:04:07 -0600 Message-Id: <20221214150406.5249-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/emacs-xyz.scm (emacs-pydoc): New variable. Hi, just changed the wording in the phases in v2 for clarity. all best, jgart --- gnu/packages/emacs-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 3286928f8d..63e080c44b 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -196,6 +196,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (gnu packages linux) #:use-module (gnu packages libevent) #:use-module (gnu packages lisp-xyz) + #:use-module (gnu packages lsof) #:use-module (gnu packages lua) #:use-module (gnu packages music) #:use-module (gnu packages version-control) @@ -8637,6 +8638,46 @@ (define-public emacs-popper windows Emacs produces, while still keeping them within arm’s reach.") (license license:gpl3+)))) +(define-public emacs-pydoc + ;; https://github.com/statmobile/pydoc/issues/31 + (let ((commit "c8b667e17bfe3e63221f822c5c4d58c8fb4fea90") + (revision "0")) + (package + (name "emacs-pydoc") + (version (git-version "0.2" revision commit)) + (source + (origin + (uri (git-reference + (url "https://github.com/statmobile/pydoc") + (commit commit))) + (method git-fetch) + (sha256 + (base32 "082ar5w28dknaa63mf587vdzr78xlnvh8lbxqq3hk6qa2c72akam")) + (file-name (git-file-name name version)))) + (build-system emacs-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-python-executable + (lambda* (#:key outputs #:allow-other-keys) + (emacs-substitute-variables "pydoc.el" + ("pydoc-python-command" + (search-input-file outputs "bin/python"))))) + (add-after 'unpack 'patch-lsof-executable + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "pydoc.el" + (("\"lsof") + ;; Replace removed double quote in parsing of lsof executable. + (string-append "\"" (search-input-file inputs "bin/lsof"))))))))) + (inputs (list lsof python-wrapper)) + (propagated-inputs (list python-jedi)) + (home-page "https://github.com/statmobile/pydoc") + (synopsis "Navigate Python documentation in Emacs") + (description "This package provides an Emacs mode for navigating +Python documentation with @code{pydoc} in Emacs.") + (license license:gpl3+)))) + (define-public emacs-python-black (package (name "emacs-python-black") -- 2.38.1 From unknown Sat Jun 14 18:05:37 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#60067] [PATCH v2] gnu: Add emacs-pydoc. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Dec 2022 17:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60067 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60067@debbugs.gnu.org Cc: jgart , 60067-done@debbugs.gnu.org X-Debbugs-Original-To: jgart via Guix-patches via Received: via spool by submit@debbugs.gnu.org id=B.167121301817921 (code B ref -1); Fri, 16 Dec 2022 17:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Dec 2022 17:50:18 +0000 Received: from localhost ([127.0.0.1]:50671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Eqg-0004ey-Fh for submit@debbugs.gnu.org; Fri, 16 Dec 2022 12:50:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:56280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Eqd-0004el-S1 for submit@debbugs.gnu.org; Fri, 16 Dec 2022 12:50:16 -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 1p6Eqd-0000Fe-KY for guix-patches@gnu.org; Fri, 16 Dec 2022 12:50:15 -0500 Received: from relay11.mail.gandi.net ([2001:4b98:dc4:8::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6Eqb-0005CP-Tw for guix-patches@gnu.org; Fri, 16 Dec 2022 12:50:15 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 1CAF5100009; Fri, 16 Dec 2022 17:50:07 +0000 (UTC) From: Nicolas Goaziou References: <20221214150006.5008-1-jgart@dismail.de> <20221214150406.5249-1-jgart@dismail.de> Date: Fri, 16 Dec 2022 18:50:07 +0100 In-Reply-To: <20221214150406.5249-1-jgart@dismail.de> (jgart via Guix-patches via's message of "Wed, 14 Dec 2022 09:04:07 -0600") Message-ID: <878rj7dyr4.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:4b98:dc4:8::231; envelope-from=mail@nicolasgoaziou.fr; helo=relay11.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hello, jgart via Guix-patches via writes: > * gnu/packages/emacs-xyz.scm (emacs-pydoc): New variable. Applied. Thank you. Regards, -- Nicolas Goaziou From unknown Sat Jun 14 18:05:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: jgart Subject: bug#60067: closed (Re: [bug#60067] [PATCH v2] gnu: Add emacs-pydoc.) Message-ID: References: <878rj7dyr4.fsf@nicolasgoaziou.fr> <20221214150006.5008-1-jgart@dismail.de> X-Gnu-PR-Message: they-closed 60067 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 60067@debbugs.gnu.org Date: Fri, 16 Dec 2022 17:51:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1671213062-17959-1" This is a multi-part message in MIME format... ------------=_1671213062-17959-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #60067: [PATCH] gnu: Add emacs-pydoc. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 60067@debbugs.gnu.org. --=20 60067: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D60067 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1671213062-17959-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 60067-done) by debbugs.gnu.org; 16 Dec 2022 17:50:19 +0000 Received: from localhost ([127.0.0.1]:50673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Eqg-0004f0-Q6 for submit@debbugs.gnu.org; Fri, 16 Dec 2022 12:50:19 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:56775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Eqe-0004ei-Qq for 60067-done@debbugs.gnu.org; Fri, 16 Dec 2022 12:50:17 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 1CAF5100009; Fri, 16 Dec 2022 17:50:07 +0000 (UTC) From: Nicolas Goaziou To: jgart via Guix-patches via Subject: Re: [bug#60067] [PATCH v2] gnu: Add emacs-pydoc. References: <20221214150006.5008-1-jgart@dismail.de> <20221214150406.5249-1-jgart@dismail.de> Date: Fri, 16 Dec 2022 18:50:07 +0100 In-Reply-To: <20221214150406.5249-1-jgart@dismail.de> (jgart via Guix-patches via's message of "Wed, 14 Dec 2022 09:04:07 -0600") Message-ID: <878rj7dyr4.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 60067-done Cc: jgart , 60067-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, jgart via Guix-patches via writes: > * gnu/packages/emacs-xyz.scm (emacs-pydoc): New variable. Applied. Thank you. Regards, -- Nicolas Goaziou ------------=_1671213062-17959-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Dec 2022 15:00:49 +0000 Received: from localhost ([127.0.0.1]:39754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5TFY-0003oO-KJ for submit@debbugs.gnu.org; Wed, 14 Dec 2022 10:00:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:34512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5TFW-0003hn-GT for submit@debbugs.gnu.org; Wed, 14 Dec 2022 10:00:47 -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 1p5TFR-0001a2-Rf for guix-patches@gnu.org; Wed, 14 Dec 2022 10:00:44 -0500 Received: from mx1.dismail.de ([78.46.223.134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5TFP-0002C3-1T for guix-patches@gnu.org; Wed, 14 Dec 2022 10:00:41 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 19420cd8 for ; Wed, 14 Dec 2022 16:00:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=8sqkTdOjT6i7g+hqwS7ho RIf9scLmWNKh+SO/AdsQ0A=; b=nt3kX4BBeNBi5lA1eO5vhfUhKoJ48rFGkMx82 LV0/92bU+b9Lhb/B1TCeXbmLwv5mitismle+rJwV6x2JjQGKY3KLyoGtIcdD72El oSvF2i29c8sfSZi4xo5qcXTcJ9acrPIqmUj8NCe03JtbDIrpF54g5/zHVhoCZT/Q kfH/PXatttr8vCORzPKolPwdcW3cyqHpBhbAo3Z2j9u0NAbH48wJBN6qp4ByNWnU QzAb2zirhCNUCut47vnfNnBuSKrH06uYbn+fKB53Kd8KovNol6VXqnQXihAgfiTq 2kmPRhSgAt8lkPkVaq0W9Ee57kWUXEa1MU54n9DLKuQvcjAoQ== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id fea65cf1 for ; Wed, 14 Dec 2022 16:00:31 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 0dd22202 for ; Wed, 14 Dec 2022 16:00:31 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 69858f5a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 14 Dec 2022 16:00:30 +0100 (CET) From: jgart To: guix-patches@gnu.org Subject: [PATCH] gnu: Add emacs-pydoc. Date: Wed, 14 Dec 2022 09:00:06 -0600 Message-Id: <20221214150006.5008-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * gnu/packages/emacs-xyz.scm (emacs-pydoc): New variable. --- gnu/packages/emacs-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 3286928f8d..63e080c44b 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -196,6 +196,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (gnu packages linux) #:use-module (gnu packages libevent) #:use-module (gnu packages lisp-xyz) + #:use-module (gnu packages lsof) #:use-module (gnu packages lua) #:use-module (gnu packages music) #:use-module (gnu packages version-control) @@ -8637,6 +8638,46 @@ (define-public emacs-popper windows Emacs produces, while still keeping them within arm’s reach.") (license license:gpl3+)))) +(define-public emacs-pydoc + ;; https://github.com/statmobile/pydoc/issues/31 + (let ((commit "c8b667e17bfe3e63221f822c5c4d58c8fb4fea90") + (revision "0")) + (package + (name "emacs-pydoc") + (version (git-version "0.2" revision commit)) + (source + (origin + (uri (git-reference + (url "https://github.com/statmobile/pydoc") + (commit commit))) + (method git-fetch) + (sha256 + (base32 "082ar5w28dknaa63mf587vdzr78xlnvh8lbxqq3hk6qa2c72akam")) + (file-name (git-file-name name version)))) + (build-system emacs-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-python-executable + (lambda* (#:key outputs #:allow-other-keys) + (emacs-substitute-variables "pydoc.el" + ("pydoc-python-command" + (search-input-file outputs "bin/python"))))) + (add-after 'unpack 'patch-lsof-executable + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "pydoc.el" + (("\"lsof") + ;; Replace removed double quote in parsing of lsof executable. + (string-append "\"" (search-input-file inputs "bin/lsof"))))))))) + (inputs (list lsof python-wrapper)) + (propagated-inputs (list python-jedi)) + (home-page "https://github.com/statmobile/pydoc") + (synopsis "Navigate Python documentation in Emacs") + (description "This package provides an Emacs mode for navigating +Python documentation with @code{pydoc} in Emacs.") + (license license:gpl3+)))) + (define-public emacs-python-black (package (name "emacs-python-black") -- 2.38.1 ------------=_1671213062-17959-1--