# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_pkgname=django-djblets
pkgname=py3-$_pkgname
pkgver=0.6.31
pkgrel=6
pkgdesc="set of utilty classes and functions for web applications written using Django"
url="https://github.com/djblets/djblets/"
arch="noarch"
license="MIT"
depends="python3 py3-django-pipeline"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/djblets/djblets/archive/release-$pkgver.tar.gz"

builddir="$srcdir/djblets-release-$pkgver"

build() {
	python3 setup.py build
}

package() {
	export PIPELINE_JS_COMPRESSOR='pipeline.compressors.jsmin.JSMinCompressor'
	python3 setup.py install --skip-build --root="$pkgdir"

	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="
8874070fca77fce8a823ce0155ca0314758c7a6d7dd423a30aea5b23990bcec3675a9e22751f4bf6b6db75c6f0688cfaab85e59a344e13135c0f55a6edc35b6d  py3-django-djblets-0.6.31.tar.gz
"
