summaryrefslogblamecommitdiff
path: root/user/py3-smartypants/APKBUILD
blob: b6943bb9a1e396daeea7e80fdd44867f8939e503 (plain) (tree)


































                                                                                                                                                                          
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=py3-smartypants
_pkgname=smartypants.py
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=2.0.1
pkgrel=0
pkgdesc="Python module for translating ASCII punctuation into HTML entities"
url="https://pypi.org/project/smartypants/"
arch="noarch"
license="BSD-3-Clause AND BSD-2-Clause"
depends="python3"
checkdepends="py3-docutils py3-pygments"
makedepends=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/leohemsted/smartypants.py/archive/refs/tags/v$pkgver.tar.gz
	hashbang.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=. python3 setup.py test
}

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

sha512sums="d47a866a5478c3520251f87a93a468a5eea10318b24b2e8d4bc918d533b5a5789aa56d3a8d5fb8ccff9572fb63e5b6f2eafc44f93fb57a19e6621ebef5d64d9d  py3-smartypants-2.0.1.tar.gz
9e0ee42854b7ed0eeed8f0ac6969a93f7aec593bad416ca4f11f1d8a85bcc9ae9907fab98274720ddc7f927ea9a2ab9f4267afba04498670746ca41a4c316d15  hashbang.patch"