summaryrefslogblamecommitdiff
path: root/user/py3-jinja2/APKBUILD
blob: 4572623616e5e3cda6000d3a31b21fa2340f4602 (plain) (tree)
1
2
3
4
5
6
7



                                                     

                      
             







                                                                                              
                                                                                                                       

                                    



                      
         



                              



                                                 
                                                               

 
                                                                                                                                                                       
# Contributor: Brandon Bergren <git@bdragon.rtk0.net>
# Maintainer: Brandon Bergren <git@bdragon.rtk0.net>
pkgname=py3-jinja2
_pkgname=Jinja2
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=2.10.1
pkgrel=0
pkgdesc="A small but fast and easy to use stand-alone template engine written in pure python."
url="https://pypi.python.org/pypi/Jinja2"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev"
checkdepends="py3-pytest py3-markupsafe"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

# secfixes: jinja2
#   2.10.1-r0:
#     - CVE-2019-10906

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir:$PYTHONPATH" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="a00153a0e07bb7d67f301b4eaf7af657726a1985e9ffc7ae2d76bdbb4c062d672efc8065e398767e1039b18a483a0092e206deac91e4047aad64920b56869623  py3-jinja2-2.10.1.tar.gz"