blob: 79d1e3e3c3f1d3681d27950a2d562c7f0924277d (
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.21
pkgrel=1
pkgdesc='Minimal Python AST Evaluator'
arch=('any')
url='https://newville.github.io/asteval/'
license=('MIT')
checkdepends=(
'python-nose'
'python-pytest')
makedepends=(
'python-setuptools')
depends=(
'python>=3.8'
'python<3.9')
source=(
"${_pkgname}-${pkgver}.tar.gz::https://github.com/newville/${_pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('e96937e41093db65a1eec4f3427124bee980590bc57309c7892fbec18637742d9f7b673d465e4f40325beece8912f7b4afc66319f5fd6adafb85320ca8e54c09')
build() {
cd "$srcdir/${_pkgname}-$pkgver"
python setup.py build
}
check() {
cd "$srcdir/${_pkgname}-$pkgver"
nosetests3 tests
}
package(){
cd "$srcdir/${_pkgname}-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1
}
|