summaryrefslogtreecommitdiff
path: root/python-asteval/PKGBUILD
blob: 07d59556d108805a5cc91303dfc113d9ae262b03 (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
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Francois Boulogne <fboulogne at april dot org>
# Maintainer: Erich Eckner <arch at eckner dot net>

pkgname='python-asteval'
_pkgname="${pkgname#*-}"
pkgver=0.9.25
pkgrel=60
pkgdesc='Minimal Python AST Evaluator'
arch=('any')
url='https://newville.github.io/asteval/'
license=('MIT')
depends=(
  'python<3.11'
  'python>=3.10')
checkdepends=(
  'python-nose'
  'python-pytest')
makedepends=(
  'python-setuptools')
source=(
  "git+https://github.com/newville/${_pkgname}?commit=${pkgver}")
sha512sums=('SKIP')

build() {
  cd "$srcdir/${_pkgname}"
  python setup.py build
}

check() {
  cd "$srcdir/${_pkgname}"
  nosetests3 tests
}

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