aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-tomli/APKBUILD
blob: c472164d16e99bfcb0dbdda4554df0e5f4529707 (plain) (blame)
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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-tomli
_pyname=tomli
pkgver=1.2.0
pkgrel=0
pkgdesc="Lil' TOML parser"
url="https://github.com/hukkin/tomli"
license="MIT"
arch="noarch"
depends="python3"
makedepends="pyproject2setuppy"
checkdepends="py3-pytest py3-dateutil"
source="https://github.com/hukkin/tomli/archive/$pkgver/tomli-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 -m pyproject2setuppy.main build
}

check() {
	pytest
}

package() {
	python3 -m pyproject2setuppy.main install \
		--prefix=/usr --root="$pkgdir" --skip-build
}

sha512sums="
87b6069d026aa597774cbc87f3a7ad712905290e3c72cf123733abb1a6dc0ab5dc84f6b0eabc54b9f6de94091f7d2763bb4a56203f5ca2e292e202218e4fae37  tomli-1.2.0.tar.gz
"