summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f952d3855f5c092ce9f53785ad42affc6970cf65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname='python-untokenize'
_pkgname='untokenize'
pkgver=0.1.1
pkgrel=1
pkgdesc='Transforms tokens into source code'
url='https://github.com/myint/untokenize'
checkdepends=()
depends=()
makedepends=()
optdepends=()
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('3865dbbbb8efb4bb5eaa72f1be7f3e0be00ea8b7f125c69cbd1f5fda926f37a2')

package() {
    cd "${_pkgname}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1
}

check() {
  cd "$_pkgname-$pkgver"
  python test_untokenize.py
}