| author | Filipe Laíns
<lains@archlinux.org> 2021-04-22 22:31:44 UTC |
| committer | Filipe Laíns
<lains@archlinux.org> 2021-04-22 22:31:44 UTC |
| parent | 28ec83faa86f4103ba2a5595b41a836f767ecc05 |
| PKGBUILD | +12 | -4 |
diff --git a/PKGBUILD b/PKGBUILD index d47291c..56b6f75 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ _pkgname=MyST-Parser pkgname=python-myst-parser -pkgver=0.13.5 +pkgver=0.13.6 pkgrel=1 pkgdesc='An extended commonmark compliant parser, with bridges to docutils/sphinx' arch=('any') @@ -12,8 +12,16 @@ depends=('python-markdown-it-py' 'python-mdit_py_plugins' 'python-yaml' 'python- optdepends=('python-linkify-it-py: linkify support') makedepends=('python-setuptools') checkdepends=('python-pytest' 'python-pytest-regressions' 'python-beautifulsoup4' 'python-linkify-it-py') -source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") -sha512sums=('84c19654f818cb162d12c10b30e6c93652d523d37b3da07f3d61d366283c3b1f1d37a66a773a90b1af56b17e2963efb3cd062378ba8e3a4940c0f276151996ca') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" + "fix-tests.patch::$url/pull/320.patch") +sha512sums=('c0f080e328c7c91fe110bc900dbbba560a61e1a8f6777d680d0a4ebd55c7d919cbf323a875967b614714ced45e1b45877bc01fbcb2dbd305006c6bd67530a138' + 'f2af70ed802ccdc6605aed98d7acaf3ebba50dbc870daa84a56654ecf77775767fd778f09d40af6e067610b32906de5f19243decf177dc79324b6746c43ea0c1') + +prepare() { + cd $_pkgname-$pkgver + + patch -p1 -i ../fix-tests.patch +} build() { cd $_pkgname-$pkgver @@ -24,7 +32,7 @@ build() { check() { cd $_pkgname-$pkgver - pytest -k 'not test_gettext' + python -m pytest -k 'not test_sphinx_builds' } package() {