# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-django-oscar
pkgver=3.2.4
pkgrel=1
pkgdesc="Domain-driven e-commerce for Django"
url="http://oscarcommerce.com/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-babel py3-django py3-django-extra-views py3-django-haystack
	py3-django-phonenumber-field py3-django-sorl-thumbnail
	py3-django-tables2 py3-django-treebeard py3-django-widget-tweaks
	py3-factory-boy py3-pillow py3-purl"
makedepends="gettext py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/d/django-oscar/django-oscar-$pkgver.tar.gz
"
builddir="$srcdir/django-oscar-$pkgver"

replaces="py-django-oscar" # Backwards compatibility
provides="py-django-oscar=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare
	django-admin compilemessages
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
52cadae438f036c644a2fe3a155a5041e81f8c834786982c6200e9f59a02f1c5b52bd22e063e033e273bbff5da6adb5b3745e2c1d3ac27d2888d800bbedbe85a  django-oscar-3.2.4.tar.gz
"
