1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
2 # Contributor: Padraic Fanning <fanninpm AT miamioh DOT edu>
4 pkgname=python-exceptiongroup
5 _pyname=${pkgname#python-}
8 pkgdesc='Backport of PEP 654 (exception groups)'
10 url="https://github.com/agronholm/$_pyname"
13 makedepends=(python-{build,installer,wheel}
15 checkdepends=(python-pytest)
16 _archive="$_pyname-$pkgver"
17 source=("$url/archive/$pkgver/$_archive.tar.gz")
18 sha256sums=('abe42a62bac0948d95bba6a48f63d8ebb21a7420fd26039a4ec951873fafaee7')
22 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
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