1 # Maintainer: Alexander Epaneshnikov <alex19ep@archlinux.org>
2 # Maintainer: Konstantin Gizdov <arch at kge dot pw>
5 pkgname=python-${_pkgname}
8 pkgdesc="Command-line interface to Jinja2 for templating in shell scripts."
9 url="https://github.com/kolypto/j2cli"
12 depends=('python' 'python-jinja' 'python-pyaml' 'python-setuptools-scm')
13 makedepends=('python-build' 'python-installer' 'python-wheel')
14 checkdepends=('python-nose' 'python-nose-fixes')
15 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kolypto/j2cli/archive/v${pkgver}.tar.gz"
17 b2sums=('08b434596021576dcecbaa8e700479c103f5d93c3d42880f8f5062fb0db78d4bd0bcc43c068e56b950a654b383a27b5aaff3b58ef22382c6fd6da8d9135ede98'
18 '7d4e003c69df6329dca070e67095476a5666355ffaa1d124063abd1bf567ce630f56a86574b360b2f5e0d7bff3279b89e632991ec79551ad459fbef9a3647928')
21 cd "${_pkgname}-${pkgver}"
22 patch -Np1 -i "${srcdir}/version.patch"
26 cd "${_pkgname}-${pkgver}"
27 python -m build --wheel --no-isolation
31 cd "${_pkgname}-${pkgver}"
32 PYTHONPATH="$PWD/build/lib" nosetests
36 cd "${_pkgname}-${pkgver}"
37 python -m installer --destdir="${pkgdir}" dist/*.whl
38 install -vDm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"