aports/testing/py3-django-compress-staticfiles/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

40 lines
1.1 KiB
Plaintext

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
_pkgname=django-compress-staticfiles
pkgname="py3-$_pkgname"
pkgver=1.0.1_beta0
pkgrel=4
pkgdesc="Django static files storage backend inheriting from ManifestFilesMixin and StaticFilesStorage"
url="https://github.com/armandtvz/django-compress-staticfiles"
arch="noarch"
license="GPL-3.0-only"
depends="
py3-django
py3-brotli
py3-csscompressor
"
makedepends="py3-setuptools_scm"
checkdepends="py3-django-utils-six"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-${pkgver//_beta/b}.tar.gz"
builddir="$srcdir/$_pkgname-${pkgver//_beta/b}"
options="!check" # requires py3-django-utils-six
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --root "$pkgdir"
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}
sha512sums="
f877e7cf6e1406743a5940f47cc5de8376fefb182e92864c1176cd94c2a88d135bcefbb8189a3d54ca51c30e8854b44fde43f47c5906eb9e50a04176332e26cc django-compress-staticfiles-1.0.1b0.tar.gz
"