GNU bug report logs - #66018
Add python-documentation

Previous Next

Package: guix-patches;

Reported by: Mitchell Schmeisser <mitchellschmeisser <at> librem.one>

Date: Fri, 15 Sep 2023 20:59:01 UTC

Severity: normal

To reply to this bug, email your comments to 66018 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#66018; Package guix-patches. (Fri, 15 Sep 2023 20:59:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mitchell Schmeisser <mitchellschmeisser <at> librem.one>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 15 Sep 2023 20:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mitchell Schmeisser <mitchellschmeisser <at> librem.one>
To: guix-patches <at> gnu.org 
Subject: Add python-documentation
Date: Fri, 15 Sep 2023 16:57:54 -0400
[0001-gnu-Added-python-documentation.patch (text/x-patch, inline)]
From 97ddb86c30bfa7c349a48b0c16b5c5c29394e2e9 Mon Sep 17 00:00:00 2001
Message-Id: <97ddb86c30bfa7c349a48b0c16b5c5c29394e2e9.1694811122.git.mitchellschmeisser <at> librem.one>
From: Mitchell Schmeisser <mitchellschmeisser <at> librem.one>
Date: Fri, 15 Sep 2023 16:49:01 -0400
Subject: [PATCH] gnu: Added python-documentation
To: guix-patches <at> 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 <philip <at> philipmcgrath.com>
 ;;; Copyright © 2022 jgart <jgart <at> dismail.de>
 ;;; Copyright © 2021 Lars-Dominik Braun <lars <at> 6xq.net>
+;;; Copyright © 2023 Mitchell Schmeisser <mitchellschmeisser <at> librem.one>
 ;;;
 ;;; 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

[Message part 2 (text/plain, inline)]
-- 
Mitchell Schmeisser
OpenPGP Fingerprint: 08 9F 0E 56 00 87 96 56 C4 63 69 1A 38 11 C0 0D C4
28 5E 27

This bug report was last modified 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.