aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-tidyexc/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-tidyexc/APKBUILD')
-rw-r--r--community/py3-tidyexc/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/py3-tidyexc/APKBUILD b/community/py3-tidyexc/APKBUILD
new file mode 100644
index 00000000000..c76d37163ad
--- /dev/null
+++ b/community/py3-tidyexc/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Andy Hawkins <andy@gently.org.uk>
+# Maintainer: Andy Hawkins <andy@gently.org.uk>
+pkgname=py3-tidyexc
+pkgver=0.10.0
+pkgrel=2
+pkgdesc="An exception class inspired by the tidyverse style guide."
+url="https://pypi.org/project/tidyexc/"
+arch="noarch"
+license="MIT"
+makedepends="
+ py3-gpep517
+ py3-flit-core
+ "
+checkdepends="
+ py3-pytest
+ "
+subpackages="$pkgname-pyc"
+source="https://files.pythonhosted.org/packages/source/t/tidyexc/tidyexc-$pkgver.tar.gz
+ flit-core.patch
+ "
+builddir="$srcdir/tidyexc-$pkgver"
+
+build() {
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
+}
+
+check() {
+ PY_IGNORE_IMPORTMISMATCH=1 PYTHONPATH="$PWD" pytest
+}
+
+package() {
+ python3 -m installer -d "$pkgdir" \
+ .dist/tidyexc*.whl
+}
+
+sha512sums="
+7671c2bd9d4444ae207a55d9d9c1b24192ef1e0ab8f906ea94919e60cc636bc224ac69e86d494db6e133566c1debc6713618f5b94922a42c09d883f7392a2537 tidyexc-0.10.0.tar.gz
+797302081b65bc1dad525503e1bb81ae4885c20cb0ed0275cb15dc4ea50276cea219ef58fc7846add1343bfa2fa5e9bfb091d64e7c60ebb6ab0056d9893f0188 flit-core.patch
+"