Autogenerated commit at 2024-12-24 09:56:36.739708+00:00
This commit is contained in:
19
python-aiohttp-jinja2/.SRCINFO
Normal file
19
python-aiohttp-jinja2/.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
||||
pkgbase = python-aiohttp-jinja2
|
||||
pkgdesc = jinja2 template renderer for aiohttp.web
|
||||
pkgver = 1.6
|
||||
pkgrel = 2
|
||||
url = http://aiohttp-jinja2.aio-libs.org/
|
||||
arch = any
|
||||
license = Apache-2.0
|
||||
checkdepends = python-pytest-aiohttp
|
||||
checkdepends = python-pytest-asyncio
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-setuptools
|
||||
makedepends = python-wheel
|
||||
depends = python-aiohttp
|
||||
depends = python-jinja
|
||||
source = https://github.com/aio-libs/aiohttp-jinja2/releases/download/v1.6/aiohttp-jinja2-1.6.tar.gz
|
||||
sha256sums = a3a7ff5264e5bca52e8ae547bbfd0761b72495230d438d05b6c0915be619b0e2
|
||||
|
||||
pkgname = python-aiohttp-jinja2
|
41
python-aiohttp-jinja2/PKGBUILD
Normal file
41
python-aiohttp-jinja2/PKGBUILD
Normal file
@ -0,0 +1,41 @@
|
||||
# Maintainer: Anton Kudelin <kudelin at proton dot me>
|
||||
|
||||
_pyname=aiohttp-jinja2
|
||||
pkgname=python-$_pyname
|
||||
pkgver=1.6
|
||||
pkgrel=2
|
||||
pkgdesc='jinja2 template renderer for aiohttp.web'
|
||||
arch=(any)
|
||||
url='http://aiohttp-jinja2.aio-libs.org/'
|
||||
license=(Apache-2.0)
|
||||
depends=(python-aiohttp python-jinja)
|
||||
makedepends=(python-build python-installer python-setuptools python-wheel)
|
||||
checkdepends=(python-pytest-aiohttp python-pytest-asyncio)
|
||||
source=(https://github.com/aio-libs/$_pyname/releases/download/v$pkgver/$_pyname-$pkgver.tar.gz)
|
||||
sha256sums=('a3a7ff5264e5bca52e8ae547bbfd0761b72495230d438d05b6c0915be619b0e2')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_pyname-$pkgver"
|
||||
python -m build \
|
||||
--wheel \
|
||||
--no-isolation \
|
||||
--skip-dependency-check
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/$_pyname-$pkgver"
|
||||
|
||||
python -m venv --system-site-packages test-env
|
||||
test-env/bin/python -m installer dist/*.whl
|
||||
sed -i '/--cov/d' pytest.ini
|
||||
|
||||
test-env/bin/python -m pytest -v
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_pyname-$pkgver"
|
||||
python -m installer \
|
||||
--destdir="$pkgdir" \
|
||||
--compile-bytecode=2 \
|
||||
dist/*.whl
|
||||
}
|
Reference in New Issue
Block a user