From patchwork Sun Jan 21 10:11:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 59260 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 D0C8B27BBE2; Sun, 21 Jan 2024 10:14:23 +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.6 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED,URIBL_SBL_A autolearn=unavailable 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 C3D8927BBE9 for ; Sun, 21 Jan 2024 10:14:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRUq3-0003uq-6r; Sun, 21 Jan 2024 05:14:03 -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 1rRUpz-0003ue-MA for guix-patches@gnu.org; Sun, 21 Jan 2024 05:13:59 -0500 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 1rRUpy-0006tm-F9 for guix-patches@gnu.org; Sun, 21 Jan 2024 05:13:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rRUq1-0004Vt-PM for guix-patches@gnu.org; Sun, 21 Jan 2024 05:14:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68631] [PATCH] gnu: Add python-sphinx-issues. Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 21 Jan 2024 10:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68631 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68631@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170583203017321 (code B ref -1); Sun, 21 Jan 2024 10:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jan 2024 10:13:50 +0000 Received: from localhost ([127.0.0.1]:36644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRUpq-0004VI-5f for submit@debbugs.gnu.org; Sun, 21 Jan 2024 05:13:50 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rRUpn-0004V5-D9 for submit@debbugs.gnu.org; Sun, 21 Jan 2024 05:13:49 -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 1rRUpe-0003tm-NP for guix-patches@gnu.org; Sun, 21 Jan 2024 05:13:38 -0500 Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rRUpc-0006sf-8X for guix-patches@gnu.org; Sun, 21 Jan 2024 05:13:38 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4THq1k4TZpz9sTf for ; Sun, 21 Jan 2024 11:13:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1705832010; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vsNeQnekiGxPWjJ5SfC73dvfTV8BPcFkOPRryQQ7Bqk=; b=jly//GgCIhb46Z+EVNzQYyCSoRI9EeXeUJYpJoyB27NSgFcG+y84eeCMfm0rKNCAPNTdku 1k13EK3PCKyPi//jaqoYxHCx2MSTKHX2RayrvzaY7wANJPoNFrzs/zq7aymT4SmuZG+QcW dUF52nKlHbIeHDJdCrz0TsyYOBFWHw0L52v3UstlaBkXNI4+IOe4xkzGY40HFvMRlB+Cib QNZPcp6W2F2tdXg8KmPJb3ANDLWSK+dU+quLbeZfwm+VW9O9Bc53Zk5gQ23LzB34Qeqkn4 tu5qLkDuIKENjF+GNqviDcfbauRECOIn+WdRku6sBgp/LPs93d2Q+NSul7j25g== From: Troy Figiel Date: Sun, 21 Jan 2024 11:11:41 +0100 Message-ID: <87h6j7hu49.fsf@troyfigiel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4THq1k4TZpz9sTf Received-SPF: pass client-ip=2001:67c:2050:0:465::103; envelope-from=troy@troyfigiel.com; helo=mout-p-103.mailbox.org X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 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, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 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: , 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/sphinx.scm (python-sphinx-issues): New variable. --- gnu/packages/sphinx.scm | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) base-commit: c79ffe25e98607d6803f960d5187e4098e1dc7c2 diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 7e5a929241..64c97afd8e 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2021, 2022 Vinicius Monego ;;; Copyright © 2021 Hugo Lecomte ;;; Copyright © 2021, 2022 Maxim Cournoyer +;;; Copyright © 2024 Troy Figiel ;;; ;;; This file is part of GNU Guix. ;;; @@ -372,6 +373,48 @@ (define-public python-sphinxcontrib-newsfeed (home-page "https://bitbucket.org/prometheus/sphinxcontrib-newsfeed") (license license:bsd-2))) +(define-public python-sphinx-issues + (package + (name "python-sphinx-issues") + (version "4.0.0") + (source + (origin + ;; No tests in the PyPI tarball. + (method git-fetch) + (uri (git-reference + (url "https://github.com/sloria/sphinx-issues") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0q4as8gibvin0n6h5y1q4cwz3b1nwgs0idfc94dbndx42pjiz1vn")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-before 'check 'patch-sphinx-build-path + (lambda _ + ;; The path to the sphinx-build binary is hardcoded to + ;; be in the same directory as the python + ;; executable. That does not work when building the + ;; package. + (substitute* "tests/test_sphinx_issues.py" + (((string-append "Path\\(sys\\.executable\\)" + "\\.parent\\.joinpath\\" + "(\"sphinx-build\"\\)")) + (string-append "\"" + #$(this-package-native-input + "python-sphinx") + "/bin/sphinx-build\"")))))))) + (native-inputs (list python-flit-core python-pytest python-sphinx)) + (home-page "https://github.com/sloria/sphinx-issues") + (synopsis "Sphinx extension for linking to your project's issue tracker") + (description + "This package provides a Sphinx extension for linking to your project's +issue tracker. This includes roles for linking to issues, pull requests and +user profiles. Support for GitHub is built-in, but other services can also be +supported with @code{sphinx-issues}.") + (license license:expat))) + (define-public python-sphinx-panels (package (name "python-sphinx-panels")