archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-tomli / trunk / PKGBUILD
blobbd9bac720d9a419d2266edc29a696bc197b6a013
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-tomli
4 pkgver=2.0.1
5 pkgrel=1
6 pkgdesc="A lil' TOML parser"
7 url="https://github.com/hukkin/tomli"
8 license=('MIT')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-build' 'python-installer' 'python-flit-core')
12 source=("https://github.com/hukkin/tomli/archive/$pkgver/$pkgname-$pkgver.tar.gz")
13 sha512sums=('a467f8d48cdbd7213bd9b6f85fd48ba142ab7c9656c40bb30785e1c4b37a9e29eaed420f183458ad20112baee8413ebbec87755332795c8f02235d1018c3aa5c')
15 build() {
16   cd tomli-$pkgver
17   python -m build -wn --skip-dependency-check
20 check() {
21   cd tomli-$pkgver
22   PYTHONPATH="$PWD"/src python -m unittest
25 package() {
26   cd tomli-$pkgver
27   python -m installer -d "$pkgdir" dist/*.whl
29   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/