upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-utils / trunk / PKGBUILD
blob2d6a86666ff6d2697273d17cc49b806a0689a590
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Maxim Andersson <thesilentboatman@gmail.com>
3 # Contributor: NicoHood <archlinux {cat} nicohood {dog} de>
5 pkgdesc="A module with some convenient utilities not included with the standard Python install"
6 pkgname=python-utils
7 pkgver=3.5.2
8 pkgrel=2
9 arch=(any)
10 url="https://github.com/WoLpH/python-utils"
11 license=(BSD)
12 depends=(python)
13 makedepends=(python-build python-installer python-setuptools python-wheel)
14 checkdepends=(python-loguru python-pytest-runner)
15 optdepends=('python-loguru: for logging support')
16 source=(https://pypi.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz{,.asc})
17 sha512sums=('2e36bbb2e43591744c63ea972b7f361138694eb32510643ea88e8d757882379e3aec247c2fc4d5c67876939b71d564570a975700728c79f9db0cc4fcbc1605e7'
18             'SKIP')
19 b2sums=('9532d8fecd8d57a9a9f50e2e7e67386e4c5922f4ec316851544147f6da82586bb01796bb3e3fc95c894a790c57711c983d8da9abc5edc5a722089a0d86d7fb61'
20         'SKIP')
21 validpgpkeys=('149325FD15904E9C4EB89E95E81444E9CE1F695D') # Rick van Hattem <wolph@wol.ph>
23 build() {
24   cd $pkgname-$pkgver
25   python -m build --wheel --no-isolation
28 check() {
29   cd $pkgname-$pkgver
30   pytest -vv -c /dev/null
33 package() {
34   cd $pkgname-$pkgver
35   python -m installer --destdir="$pkgdir" dist/*.whl
36   install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
37   install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"