upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-exceptiongroup / repos / community-any / PKGBUILD
blobb3bf6d69d8ab8f686f8965816893de31b8403be2
1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
2 # Contributor: Padraic Fanning <fanninpm AT miamioh DOT edu>
4 pkgname=python-exceptiongroup
5 _pyname=${pkgname#python-}
6 pkgver=1.1.1
7 pkgrel=2
8 pkgdesc='Backport of PEP 654 (exception groups)'
9 arch=(any)
10 url="https://github.com/agronholm/$_pyname"
11 license=(MIT)
12 depends=(python)
13 makedepends=(python-{build,installer,wheel}
14              python-flit-scm)
15 checkdepends=(python-pytest)
16 _archive="$_pyname-$pkgver"
17 source=("$url/archive/$pkgver/$_archive.tar.gz")
18 sha256sums=('abe42a62bac0948d95bba6a48f63d8ebb21a7420fd26039a4ec951873fafaee7')
20 build() {
21         cd "$_archive"
22         export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
23         python -m build -wn
26 check() {
27         cd "$_archive"
28         PYTHONPATH=src pytest
31 package() {
32         cd "$_archive"
33         export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
34         python -m installer -d "$pkgdir" dist/*.whl
35         install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE