Package Details: python-rst2ansi 0.1.5+r4+g3728e16-1

Git Clone URL: https://aur.archlinux.org/python-rst2ansi.git (read-only, click to copy)
Package Base: python-rst2ansi
Description: Render RST (reStructuredText) to ANSI strings suitable for display in a terminal
Upstream URL: https://github.com/Snaipe/python-rst2ansi
Keywords: python rst
Licenses: MIT
Submitter: 2bluesc
Maintainer: intelfx
Last Packager: intelfx
Votes: 4
Popularity: 0.61
First Submitted: 2021-04-03 23:11 (UTC)
Last Updated: 2026-01-19 21:32 (UTC)

Latest Comments

intelfx commented on 2026-01-19 21:33 (UTC) (edited on 2026-01-19 21:34 (UTC) by intelfx)

Seemingly upstream woke up enough to apply pending PRs.

Adopted, switched to Git upstream and pinned to the last commit to pick up the fixes made since last release (all of them look essential enough).

cg505 commented on 2025-11-06 21:45 (UTC)

Doesn't work with latest python-docutils: https://github.com/Snaipe/python-rst2ansi/issues/16. This is no longer a warning and actually crashes on import.

https://sourceforge.net/p/docutils/code/HEAD/tree/tags/docutils-0.22.3/HISTORY.rst#release-0-22-2025-07-29

docutils/utils/error_reporting.py

Removed. Obsolete in Python 3.

Upstream seems dead but there is a patch here https://github.com/Snaipe/python-rst2ansi/pull/19 which would be easy to adopt into the PKGBUILD. The following patch works for me:

 license=('MIT')
 depends=('python'
          'python-setuptools'
+         'python-docutils'
         )

-source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-sha256sums=('1b17fb9a628d40f57933ad1a3aa952346444be069469508e73e95060da33fe6f')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
+        "https://patch-diff.githubusercontent.com/raw/Snaipe/python-rst2ansi/pull/19.patch")
+sha256sums=('1b17fb9a628d40f57933ad1a3aa952346444be069469508e73e95060da33fe6f'
+            'e9a0792698ea1a49210af38b39f7842e5845ed9dbe36516a464ab08317b390c7')
+
+prepare() {
+  cd ${srcdir}/${_pkgname}-${pkgver}
+
+  patch -p1 < ../19.patch
+}

 build() {
   cd ${srcdir}/${_pkgname}-${pkgver}

2bluesc commented on 2022-02-05 03:35 (UTC)

@rharish Thanks for noticing, description updated! This was a copy paste issue as I used a different PKGBUILD as a template.

rharish commented on 2022-02-04 19:36 (UTC)

@2bluesc Shouldn't the package description be: "A python utility for rendering RST in the terminal"? That's what the upstream description says. There's no mention of any B2 cloud storage.