From patchwork Wed Dec 14 15:00:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 45260 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 BF26927BBED; Wed, 14 Dec 2022 15:04:51 +0000 (GMT) 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=ham 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 650BA27BBE9 for ; Wed, 14 Dec 2022 15:04:50 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5TGA-0001rh-HZ; Wed, 14 Dec 2022 10:01:26 -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 1p5TFo-0001lK-Px for guix-patches@gnu.org; Wed, 14 Dec 2022 10:01:08 -0500 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 1p5TFm-0002If-J1 for guix-patches@gnu.org; Wed, 14 Dec 2022 10:01:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5TFl-00040E-P0 for guix-patches@gnu.org; Wed, 14 Dec 2022 10:01:01 -0500 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) 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 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-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: , Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart 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/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")