summaryrefslogtreecommitdiff
path: root/user/py3-smartypants/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-smartypants/APKBUILD')
-rw-r--r--user/py3-smartypants/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/py3-smartypants/APKBUILD b/user/py3-smartypants/APKBUILD
new file mode 100644
index 000000000..b6943bb9a
--- /dev/null
+++ b/user/py3-smartypants/APKBUILD
@@ -0,0 +1,35 @@
+# 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"