archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-tomli / repos / testing-any / PKGBUILD
blob799465da482707055aad2ded55b1af999eeab174
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-tomli
4 pkgver=1.2.2
5 pkgrel=4
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-pyproject2setuppy')
12 checkdepends=('python-pytest' 'python-dateutil')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/hukkin/tomli/archive/$pkgver.tar.gz")
14 sha512sums=('460ad8ae9a342d82ef12911c0d0e246c1434a5d40d898e91f6c05bf37b7bf9921da05e004c36907d623a797a7a215c1c3faf3f9a2b940f3867b142847a188605')
16 build() {
17   cd tomli-$pkgver
18   python -m pyproject2setuppy.main build
21 check() {
22   cd tomli-$pkgver
23   python -m pytest
26 package() {
27   cd tomli-$pkgver
28   python -m pyproject2setuppy.main install --root="$pkgdir" --optimize=1
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/