Date: Friday, June 25, 2021 @ 16:38:40 Author: yan12125 Revision: 967445
archrelease: copy trunk to community-any Added: python-pyhcl/repos/community-any/ python-pyhcl/repos/community-any/PKGBUILD (from rev 967444, python-pyhcl/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: python-pyhcl/repos/community-any/PKGBUILD (from rev 967444, python-pyhcl/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2021-06-25 16:38:40 UTC (rev 967445) @@ -0,0 +1,31 @@ +# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> +# Contributor: brent s. <bts[at]square-r00t[dot]net> + +_pkgname=pyhcl +pkgname=python-pyhcl +pkgver=0.4.4 +pkgrel=1 +pkgdesc='HCL configuration parser for python' +arch=(any) +url='https://pypi.org/project/pyhcl/' +license=(MPL2) +depends=(python) +makedepends=(python-setuptools) +checkdepends=(python-pytest) +source=("https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz") +sha256sums=('2d9b9dcdf1023d812bfed561ba72c99104c5b3f52e558d595130a44ce081b003') + +build() { + cd $_pkgname-$pkgver + python setup.py build +} + +check() { + cd $_pkgname-$pkgver + PYTHONPATH="$PWD/src" pytest tests +} + +package() { + cd $_pkgname-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +}