aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-aiowinreg/APKBUILD
blob: 3d72e9ec1f618bd9cf3942cd88931dbe0518fad5 (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
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
pkgname=py3-aiowinreg
_pyname=aiowinreg
pkgver=0.0.12
pkgrel=0
pkgdesc="Windows registry file reader"
url="https://github.com/skelsec/aiowinreg"
arch="noarch"
license="MIT"
depends="
	py3-prompt_toolkit
	py3-winacl
	python3
	"
makedepends="
	py3-gpep517
	py3-wheel
	py3-setuptools
	"
checkdepends="
	py3-pytest
	py3-pytest-asyncio
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/skelsec/aiowinreg/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
	rm -rf "$pkgdir"/usr/lib/python3.*/site-packages/tests/ # remove tests
}

sha512sums="
98fe29865ca7936ee65596b1e5d1bc281b2699f1f11240f2a51439a364f6ddedba83513539ffc6931c36b2dff5dd07744f63af5d513be4d4dfbf9c6768ab89d6  py3-aiowinreg-0.0.12.tar.gz
"