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: 59407 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 D2A5027BBE9; Thu, 25 Jan 2024 22:57:05 +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 D818727BBE2 for ; Thu, 25 Jan 2024 22:57:04 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rT8eX-0005yZ-Oc; Thu, 25 Jan 2024 17:56:57 -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 1rT8eW-0005yR-4v for guix-patches@gnu.org; Thu, 25 Jan 2024 17:56:56 -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 1rT8eV-0001qz-S7 for guix-patches@gnu.org; Thu, 25 Jan 2024 17:56:55 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rT8eb-0004bu-UE for guix-patches@gnu.org; Thu, 25 Jan 2024 17:57:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68631] [PATCH v3] gnu: Add python-sphinx-issues. References: <87h6j7hu49.fsf@troyfigiel.com> In-Reply-To: <87h6j7hu49.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jan 2024 22:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68631 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68631@debbugs.gnu.org Received: via spool by 68631-submit@debbugs.gnu.org id=B68631.170622336717661 (code B ref 68631); Thu, 25 Jan 2024 22:57:01 +0000 Received: (at 68631) by debbugs.gnu.org; 25 Jan 2024 22:56:07 +0000 Received: from localhost ([127.0.0.1]:49544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT8di-0004al-Ou for submit@debbugs.gnu.org; Thu, 25 Jan 2024 17:56:07 -0500 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]:48856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT8dg-0004a1-Dx for 68631@debbugs.gnu.org; Thu, 25 Jan 2024 17:56:05 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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-101.mailbox.org (Postfix) with ESMTPS id 4TLblT71yDz9sXk for <68631@debbugs.gnu.org>; Thu, 25 Jan 2024 23:55:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1706223350; 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=2a9aD/AH5kHOKmz9IAUoNyqkeY9ncaTEQ9E0n3In+tM=; b=oDlHawwkaCCLWC/NY/CL2+X1VysA1v2N6E2gHaFiOUhLYevrSUJ4rqyweo1kspnBakbwIh /35fdGMz443pD8h7tRJo/TL4yXlb09rCqXZdj2grPcD4G9YDmWM3Gex4GkFYRlQQIqvC/3 Ke4gtEbp+6efuhoPFhKfvOqqPwCZ6wDdPLBNrmKZDtyZf+eCZeoaWdvgbf277NEawYa4Fm wVRKUGg1gIJ6Pv7mwftkSljA9KvZGzaGMY/rT3F/kwvJXrO0Ge5hocNfoSZ4wvXnByXMaG w7VuDQrXjASdDfDQ3ix39yW2lBgb48WrfzDteL1oPfCJEdGonJRDLHUEuStIGw== From: Troy Figiel Date: Sun, 21 Jan 2024 11:11:41 +0100 Message-ID: <87cytpggzu.fsf@troyfigiel.com> MIME-Version: 1.0 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: 9b657bab84be02935d66483da1ebbe4bc78c52fb diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index 7e5a929241..e280c06f2b 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 a project's issue tracker") + (description + "This package provides a Sphinx extension for linking to a 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")