summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11765dbe9901e81dbbfe1042c03cad8d4f379f97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Maintainer: Matt Quintanilla <matt @ matt quintanilla . xyz>
pkgname=python-pretty-errors
pkgver=1.2.25
pkgrel=1
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-pip")
build() {
  pip install --no-deps --target="pretty-errors" pretty-errors==1.2.25
}
package() {
  sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
  mkdir -p $pkgdir/"$sitepackages"
  cp -r $srcdir/pretty-errors/* $pkgdir/"$sitepackages"
}