blob: 4fb5388cb567c79fd9a5ef86fdfb553ed3637ba3 (
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
36
37
38
39
40
41
42
|
# Maintainer: atomicfs <https://aur.archlinux.org/account/atomicfs>
pkgname=python-django-compression-middleware
pkgver=0.5.0
pkgrel=6
pkgdesc="Django middleware to compress responses using several algorithms"
arch=('any')
url="https://github.com/friedelwolff/django-compression-middleware"
license=('MPL-2.0')
depends=(
'python'
'python-brotli'
'python-django'
'python-zstandard'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
checkdepends=(
'python-pytest'
)
source=("${pkgname}::git+${url}#tag=v${pkgver}")
sha256sums=('SKIP')
check() {
cd "${srcdir}/${pkgname}"
pytest
}
build() {
cd "${srcdir}/${pkgname}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|