# Maintainer: Balló György <ballogyor+arch at gmail dot com>

pkgname=python-better-exceptions
pkgver=0.4.0
pkgrel=1
pkgdesc='Pretty and useful exceptions in Python, automatically'
arch=(any)
url='https://github.com/Qix-/better-exceptions'
license=(MIT)
depends=(python)
makedepends=(
  git
  python-build
  python-installer
  python-setuptools
  python-wheel
)
source=("git+https://github.com/Qix-/better-exceptions.git#tag=$pkgver")
b2sums=(fdff5a9e8c163614e3dadc19e2e32a16d4dfd1330a8a8d0391a3dba99eb51e868e53c0617332cb14bde61ec527c41c164cabc6b0e334740428cfbe0a443b954c)

build() {
  cd better-exceptions
  python -m build --wheel --no-isolation
}

package() {
  cd better-exceptions
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt
}
