blob: 2707b40a7e998b376473441da25eaa310c42e4f4 (
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
38
39
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Paul Kilar <pkilar@gmail.com>
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Paul Kilar <pkilar@gmail.com>
pkgname=py3-pystache
_realname=pystache
pkgver=0.6.0
pkgrel=1
pkgdesc="Pystache is a Python implementation of Mustache"
url="https://pypi.python.org/pypi/pystache"
arch="noarch"
license="MIT"
replaces="py-pystache" # For backwards compatibility
provides="py-pystache=$pkgver-r$pkgrel" # For backwards compatibility
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz"
builddir="$srcdir"/$_realname-$pkgver
build() {
python3 setup.py build
}
check() {
# This package uses 2to3 to convert itself to Python 3 on the fly
# So we need to jump through some hoops here
local _py3ver=$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')
mkdir -p test_dir
python3 setup.py install --root=test_dir
PYTHONPATH=test_dir/usr/lib/python$_py3ver/site-packages test_dir/usr/bin/pystache-test
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
802e12795c3ae08fbde37c9e266a60478d46d55a42e2fc339389b664edf3c5ebb2e34069546b820789ad48ed9921f4a2b89f82bb37e72e94846eec0a9ba1568c pystache-0.6.0.tar.gz
"
|