unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#66018] Add python-documentation
@ 2023-09-15 20:57 Mitchell Schmeisser via Guix-patches via
  0 siblings, 0 replies; only message in thread
From: Mitchell Schmeisser via Guix-patches via @ 2023-09-15 20:57 UTC (permalink / raw)
  To: 66018

[-- Attachment #1: python-documentation.patch --]
[-- Type: text/x-patch, Size: 2452 bytes --]

From 97ddb86c30bfa7c349a48b0c16b5c5c29394e2e9 Mon Sep 17 00:00:00 2001
Message-Id: <97ddb86c30bfa7c349a48b0c16b5c5c29394e2e9.1694811122.git.mitchellschmeisser@librem.one>
From: Mitchell Schmeisser <mitchellschmeisser@librem.one>
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 <philip@philipmcgrath.com>
 ;;; Copyright © 2022 jgart <jgart@dismail.de>
 ;;; Copyright © 2021 Lars-Dominik Braun <lars@6xq.net>
+;;; Copyright © 2023 Mitchell Schmeisser <mitchellschmeisser@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


[-- Attachment #2: Type: text/plain, Size: 106 bytes --]


-- 
Mitchell Schmeisser
OpenPGP Fingerprint: 08 9F 0E 56 00 87 96 56 C4 63 69 1A 38 11 C0 0D C4
28 5E 27

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-15 20:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-15 20:57 [bug#66018] Add python-documentation Mitchell Schmeisser via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).