summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 87d5056d5daff76d1fc1b5c4320897a1f768f339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Matt Quintanilla <matt @ matt quintanilla . xyz>
pkgname=python-pretty-errors
_pkgname=pretty_errors
pkgver=1.2.25
pkgrel=2
pkgdesc="Prettifies Python exception output to make it legible."
arch=(any)
url="https://github.com/onelivesleft/PrettyErrors/"
license=(MIT)
depends=('python' 'python-colorama')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
build() {
  cd "$_pkgname-$pkgver"
  python -m build --wheel --no-isolation
}
package() {
  cd "$srcdir/$_pkgname-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha256sums=('a16ba5c752c87c263bf92f8b4b58624e3b1e29271a9391f564f12b86e93c6755')