summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b99984c36f951fe825cb0a13133a5daa1cdd084c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Python package author: Iain King <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)
makedepends=("python" "python-pip" "python-colorama")
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"
}