blob: c1f75720c79da98de51463cc593770f3b0d1f82e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
_pyname=django-htmx
pkgname=python-$_pyname
pkgver=1.23.0
pkgrel=1
pkgdesc='Extensions for using Django with htmx'
arch=(any)
url="https://github.com/adamchainz/$_pyname"
license=(MIT)
depends=(python
python-asgiref
python-django)
makedepends=(python-{build,installer,wheel}
python-setuptools)
checkdepends=(python-pytest)
_archive="$_pyname-$pkgver"
source=("$url/archive/$pkgver/$_archive.tar.gz")
sha256sums=('f734d297391457c24953a60a2558647e316561c7b09c1a2cfa12889f397bed1f')
build() {
cd "$_archive"
python -m build -wn
}
check() {
cd "$_archive"
# pytest tests
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|