aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-django-treebeard/APKBUILD
blob: 8c96d5baae641bc8c4d8dd7c0e00d0cd1528497f (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py3-django-treebeard
pkgver=4.3
pkgrel=1
pkgdesc="Efficient tree implementations for Django"
url="https://github.com/django-treebeard/django-treebeard"
arch="noarch"
license="Apache-2.0"
depends="py3-django"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/django-treebeard/django-treebeard/archive/$pkgver.tar.gz"

builddir="$srcdir/django-treebeard-$pkgver"

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

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	python3 -m pytest
}

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

sha512sums="45983162487abfc9b1afddb6f1ff8a7e57f270c753a23a54f2b5c6005146f91847c4a4ad44a4ceb0e6d5abdd9ed3f209e8834979bbc64934677c5f457d5030c8  py3-django-treebeard-4.3.tar.gz"