aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-tidyexc/APKBUILD
blob: 1350fae53f345d67f262f5da8d132a8aa36431a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Andy Hawkins <andy@gently.org.uk>
# Maintainer: Andy Hawkins <andy@gently.org.uk>
pkgname=py3-tidyexc
pkgver=0.9.0
pkgrel=4
pkgdesc="An exception class inspired by the tidyverse style guide."
url="https://pypi.org/project/tidyexc/"
arch="noarch"
license="MIT"
makedepends="
	py3-build
	py3-flit
	py3-installer
	py3-wheel
	"
checkdepends="
	py3-pytest
	"
source="https://files.pythonhosted.org/packages/source/t/tidyexc/tidyexc-$pkgver.tar.gz"
builddir="$srcdir/tidyexc-$pkgver"

build() {
	python3 -m build --no-isolation --wheel
}

check() {
	PY_IGNORE_IMPORTMISMATCH=1 PYTHONPATH="$PWD" pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/tidyexc-$pkgver-py2.py3-none-any.whl
}

sha512sums="
6b4787ef7dd36a2de0aea719f899a9376505334998f0a245d1dd6196ffc276bf92cf081ce9298c47ed9f67cb65fe1f46228c85db90cfe9ceb59e6e6a696c7397  tidyexc-0.9.0.tar.gz
"