From 9982de9ad35a10fc1d841e95809cf29b2aab1de1 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 8 Aug 2023 11:10:05 +0200 Subject: [PATCH] python3-md2gemini: update to 1.9.1. --- .../patches/fix-test-link-in-quote-newline.diff | 17 +++++++++++++++++ srcpkgs/python3-md2gemini/template | 11 +++-------- 2 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/python3-md2gemini/patches/fix-test-link-in-quote-newline.diff diff --git a/srcpkgs/python3-md2gemini/patches/fix-test-link-in-quote-newline.diff b/srcpkgs/python3-md2gemini/patches/fix-test-link-in-quote-newline.diff new file mode 100644 index 00000000000..68d3ab886dc --- /dev/null +++ b/srcpkgs/python3-md2gemini/patches/fix-test-link-in-quote-newline.diff @@ -0,0 +1,17 @@ +the test is broken on upstream +-- +diff --git a/tests/test_links.py b/tests/test_links.py +index bae3ce3..93d9d5d 100644 +--- a/tests/test_links.py ++++ b/tests/test_links.py +@@ -133,9 +133,8 @@ Text before + + > quote with newline link in it + > +-> link[1] + +-=> https://example.com 1: https://example.com ++=> https://example.com link + + Text after + """.strip() diff --git a/srcpkgs/python3-md2gemini/template b/srcpkgs/python3-md2gemini/template index 1d5f4e9c39a..c1a045bc48c 100644 --- a/srcpkgs/python3-md2gemini/template +++ b/srcpkgs/python3-md2gemini/template @@ -1,7 +1,7 @@ # Template file for 'python3-md2gemini' pkgname=python3-md2gemini -version=1.9.0 -revision=2 +version=1.9.1 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools python3-mistune2 python3-cjkwrap python3-wcwidth" @@ -12,9 +12,4 @@ maintainer="Érico Nogueira " license="LGPL-3.0-only" homepage="https://github.com/makeworld-the-better-one/md2gemini" distfiles="${PYPI_SITE}/m/md2gemini/md2gemini-${version}.tar.gz" -checksum=775cee2be36aa0f4b7ea2861f2ac7d80e113f78b40a58f92192b6c73f6c84e75 - -post_install() { - # remove tests directory polluting site-packages - rm -r $DESTDIR/usr/lib/python*/site-packages/tests -} +checksum=5eb783aaacc7dd443e44804eaef1e96816fb3d770f3e9b63431e5c8e923e5734