# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-mwparserfromhell
_pyname=mwparserfromhell
pkgver=0.6.4
pkgrel=0
pkgdesc="A parser for MediaWiki wikicode"
url="https://pypi.org/project/mwparserfromhell/"
arch="all"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
source="
https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz
"
builddir="$srcdir/$_pyname-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 setup.py check
}
package() {
python3 setup.py install --root="$pkgdir" --optimize=1
}
sha512sums="
6ea9996b22d0069a39cd4381ebec5dfb6831d0c3948ac31239ec760e8c53837ddff6c9888cb10219550854d9b4606ac9c2b8cc0a0a239fd0db5de7dd2311f1d1 mwparserfromhell-0.6.4.tar.gz
"