From patchwork Fri Sep 15 20:57:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mitchell Schmeisser X-Patchwork-Id: 53943 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 A987C27BBEA; Fri, 15 Sep 2023 21:59:31 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY,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 926C327BBE2 for ; Fri, 15 Sep 2023 21:59:30 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhFu9-0002fK-Ny; Fri, 15 Sep 2023 16:59:09 -0400 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 1qhFtz-0002ef-At for guix-patches@gnu.org; Fri, 15 Sep 2023 16:58:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhFtv-0003Jp-HP for guix-patches@gnu.org; Fri, 15 Sep 2023 16:58:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhFu2-0001bR-46 for guix-patches@gnu.org; Fri, 15 Sep 2023 16:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66018] Add python-documentation Resent-From: Mitchell Schmeisser Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 15 Sep 2023 20:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 66018@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16948115036104 (code B ref -1); Fri, 15 Sep 2023 20:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Sep 2023 20:58:23 +0000 Received: from localhost ([127.0.0.1]:44979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhFtO-0001aN-Kt for submit@debbugs.gnu.org; Fri, 15 Sep 2023 16:58:22 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhFtK-0001a8-7h for submit@debbugs.gnu.org; Fri, 15 Sep 2023 16:58:21 -0400 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 1qhFt8-0002ZF-A5 for guix-patches@gnu.org; Fri, 15 Sep 2023 16:58:06 -0400 Received: from mx1.librem.one ([138.201.176.93]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhFt5-000357-Vw for guix-patches@gnu.org; Fri, 15 Sep 2023 16:58:06 -0400 Received: from smtp.librem.one (unknown [192.241.214.14]) by mx1.librem.one (Postfix) with ESMTPS id DB6D381ED2 for ; Fri, 15 Sep 2023 13:57:58 -0700 (PDT) Authentication-Results: name mx1.librem.one; dmarc=fail (p=reject dis=none) header.from=librem.one Date: Fri, 15 Sep 2023 16:57:54 -0400 Message-ID: <87h6nvgnn1.fsf@librem.one> Received-SPF: pass client-ip=138.201.176.93; envelope-from=mitchellschmeisser@librem.one; helo=mx1.librem.one X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, MIME_HEADER_CTYPE_ONLY=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: Mitchell Schmeisser X-ACL-Warn: , Mitchell Schmeisser via Guix-patches X-Patchwork-Original-From: Mitchell Schmeisser via Guix-patches via From: Mitchell Schmeisser 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 From 97ddb86c30bfa7c349a48b0c16b5c5c29394e2e9 Mon Sep 17 00:00:00 2001 Message-Id: <97ddb86c30bfa7c349a48b0c16b5c5c29394e2e9.1694811122.git.mitchellschmeisser@librem.one> From: Mitchell Schmeisser Date: Fri, 15 Sep 2023 16:49:01 -0400 Subject: [PATCH] gnu: Added python-documentation To: guix-patches@gnu.org * gnu/packages/python.scm (python-documentation): New variable. --- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 51d5f598d7..be1725619f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -61,6 +61,7 @@ ;;; Copyright © 2022 Philip McGrath ;;; Copyright © 2022 jgart ;;; Copyright © 2021 Lars-Dominik Braun +;;; Copyright © 2023 Mitchell Schmeisser ;;; ;;; This file is part of GNU Guix. ;;; @@ -644,6 +645,34 @@ (define-public python-debug @url{https://pythonextensionpatterns.readthedocs.io/en/latest/debugging/debug.html}, for more information."))) +(define-public python-documentation + (package (inherit python) + (name "python-documentation") + (outputs '("out")) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (add-before 'build 'cd-to-doc + (lambda _ + (chdir "Doc"))) + (replace 'build + (lambda _ + (and (invoke "make" "texinfo") + (chdir "build/texinfo") + (invoke "make")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (invoke "make" "install-info" (string-append "infodir=" + (assoc-ref outputs "out") + "/share/info"))))))) + (native-inputs + (modify-inputs (package-native-inputs python) + (prepend python-sphinx + texinfo))) + (description "This package contains Python3 info pages."))) + (define* (wrap-python3 python #:optional (name (string-append (package-name python) "-wrapper"))) base-commit: 213516f0baf92b6f50bd0c2e005625c0b3421a6f -- 2.40.1