aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-tomli/APKBUILD
blob: 032d7e835f2dd008b4dace0ed5d8232a7b49626a (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.1.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="
bd452d7a2ded403f3028ef66eb3dfa710f638e40a5737a23572538c1e3f6c6e17f74be4a41fa1b62b117e6d16f123a7f34eae9f221725fbd94eb7c8a5821838c  tomli-1.1.0.tar.gz
"