archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-pyhcl / repos / community-any / PKGBUILD
blob61335d2a25187a1ad2d94a9dcd7f570ccd35ea1e
1 # Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
2 # Contributor: brent s. <bts[at]square-r00t[dot]net>
4 _pkgname=pyhcl
5 pkgname=python-pyhcl
6 pkgver=0.4.4
7 pkgrel=4
8 pkgdesc='HCL configuration parser for python'
9 arch=(any)
10 url='https://pypi.org/project/pyhcl/'
11 license=(MPL2)
12 depends=(python)
13 makedepends=(python-setuptools)
14 checkdepends=(python-pytest)
15 source=("https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz")
16 sha256sums=('2d9b9dcdf1023d812bfed561ba72c99104c5b3f52e558d595130a44ce081b003')
18 build() {
19   cd $_pkgname-$pkgver
20   python setup.py build
23 check() {
24   cd $_pkgname-$pkgver
25   PYTHONPATH="$PWD/src" pytest tests
28 package() {
29   cd $_pkgname-$pkgver
30   python setup.py install --root="$pkgdir" --optimize=1 --skip-build