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 ms5.migadu.com with LMTPS id 2KJyJhLmmWMqWAEAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 16:04:50 +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 EIsvJhLmmWOSfwEAauVa8A (envelope-from ) for ; Wed, 14 Dec 2022 16:04:50 +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 0C20F868F for ; Wed, 14 Dec 2022 16:04:50 +0100 (CET) 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 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-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 From: jgart via Guix-patches via 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671030290; 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-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=uW8kgTDjjC4HVQvJjCJrHpYNk4a7Y5vRe9zfPpFEaY8=; b=dQHjhkCJUh0WYAUtIwP585/SiDRCZ75ynUKdI7hD3fzDotnnu/6KX9X7GXDcMdYRRGvjN1 oYnS8N3gxKBopUf1ZWG8E5CVpEJBvQtKceWsTv3SQwaoUDWtBHMWLlId1J6iJlxs+6xd50 vjTxiaUpAjGJSjrT4Js6MGBvMBuychcW8hE6STsUjKmjyQ6Ujq57chJ05uI4f/Q8WpwMsE E3k21rwREorfOgzD0U8U/LZ8iF+HPa211b09V9YhoB9aos4yraxbzH6rp6Ei4arDhLmxMy XL0HnXQ5bkT8IZSDqlDtT5J5Oz8nmQ+udWjtb4PPS5AnNgOFk3i09paJoelT6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=nt3kX4BB; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671030290; a=rsa-sha256; cv=none; b=avgiNt+tAiIWhOK8VQGezF1Zibuh+4x/N6gtEAjiu8tkGbNqvD6qM8hNShF+i74X5cDMfD sebwdnYVI7s9Wu52CrcHwlvtmNeQrsqqxcx+kNuPEg7YikKDr1FMUNuKCKBaTz1DLiCl1a XRK5/T//wrJrNRkBivQ0nmYbrDxTt+2Jty4Z9JyLkO4NrdPZickTk9K0JNXxIECLF8zy1C 8+RAzyzwWt+yp18kqh2KPPXsRevUUViC+zQpiJpGbVUhzCve/6xioHwkW8+TP21u7w2cWw AL0MTEGWrsGJmWlduEtvmKkC4kWFQRtZX1iHHv0D3zpUc36iYlprsL8u0lDYSA== X-Migadu-Spam-Score: -3.77 X-Spam-Score: -3.77 X-Migadu-Queue-Id: 0C20F868F X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=nt3kX4BB; 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"; dmarc=pass (policy=none) header.from=gnu.org X-TUID: qp4SUwRL/3JP * 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