guix_mirror_bot pushed a commit to branch master
in repository guix.

commit e155516c5b5011b251ded7bd1d426136c78e6203
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 12 16:00:24 2025 +0200

    gnu: python-rst.linker: Rename and update to 2.6.0.
    
    * gnu/packages/python-xyz.scm (python-rst.linker): Rename to
    python-rst-linker and update to 2.6.0.
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:phases>: Add phase 'set-version.
    [native-inputs]: Add python-path, python-jaraco-vcs, python-pytest,
    python-pytest-subprocess, python-setuptools-scm, python-setuptools.
    [description]: Improve style.
    
    Change-Id: I9dc2e2f9882ed3908766cf943a6d90611a165641
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 44 ++++++++++++++++++++++++++++----------------
 1 file changed, 28 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a950e89009..c713ec61a4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9634,29 +9634,41 @@ outside the standard library.")
 via the SCP1 protocol, as implemented by the OpenSSH @command{scp} program.")
     (license license:gpl2+)))
 
-(define-public python-rst.linker
+(define-public python-rst-linker
   (package
-    (name "python-rst.linker")
-    (version "1.11")
+    (name "python-rst-linker")
+    (version "2.6.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "rst.linker" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/jaraco/rst.linker";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "0pqsfqqx8h0pq21k8l3k62kznrgaj2ala93c64s4d9rpbr4mgkd2"))))
-    (build-system python-build-system)
-    (propagated-inputs
-     (list python-dateutil python-six))
+        (base32 "1pcnhib881p0vgm0s8jj6inzzs98raz70sc2z6m6wlgrj9ivv5jj"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'set-version
+            (lambda _
+              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+    (propagated-inputs (list python-jaraco-context))
     (native-inputs
-     (list python-setuptools-scm))
-    ;; Test would require path.py, which would introduce a cyclic dependence.
-    (arguments `(#:tests? #f))
-    ;; Note: As of version 1.7 the documentation is not worth building.
+     (list python-path
+           python-jaraco-vcs
+           python-pytest
+           python-pytest-subprocess
+           python-setuptools-scm
+           python-setuptools))
     (home-page "https://github.com/jaraco/rst.linker";)
     (synopsis "Sphinx plugin to add links and timestamps")
-    (description "rst.linker automatically replaces text by a
-reStructuredText external reference or timestamps.  It's primary purpose is to
-augment the changelog, but it can be used for other documents, too.")
+    (description
+     "rst.linker automatically replaces text by a reStructuredText external
+reference or timestamps.  It's primary purpose is to augment the changelog,
+but it can be used for other documents, too.")
     (license license:expat)))
 
 (define-public python-sshpubkeys

Reply via email to