# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=py3-recommonmark
_pkgname=recommonmark
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=0.6.0
pkgrel=0
pkgdesc="Bridge between CommonMark and docutils"
url="https://pypi.org/project/recommonmark/"
arch="noarch"
options="!check"  # Test data not shipped with tarball
license="MIT"
depends="python3 py3-commonmark py3-docutils py3-sphinx"
checkdepends="py3-future"
makedepends=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="f94f1ee426015478a95c2ed4b6ea87a75012447ae65d6623445f923d9d616b34efb055bcfde157862fcce38749c827905b839194fa1af3a1fe1cb7e11f18835a  recommonmark-0.6.0.tar.gz"