aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-django-rest-framework/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-26 19:54:49 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-10-09 08:03:07 -0300
commit3a16ad58222e2b9aa9e9e8007e8a3f15f49d2be3 (patch)
tree9452fea9c1b3e3e6ce2217d48754bec015d7b058 /community/py3-django-rest-framework/APKBUILD
parent9ce37b77cdda020ec5ab7e30775e76bc19fd9aec (diff)
downloadaports-3a16ad58222e2b9aa9e9e8007e8a3f15f49d2be3.tar.bz2
aports-3a16ad58222e2b9aa9e9e8007e8a3f15f49d2be3.tar.xz
community/py3-django-rest-framework: move from testing
Diffstat (limited to 'community/py3-django-rest-framework/APKBUILD')
-rw-r--r--community/py3-django-rest-framework/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/py3-django-rest-framework/APKBUILD b/community/py3-django-rest-framework/APKBUILD
new file mode 100644
index 0000000000..e518458026
--- /dev/null
+++ b/community/py3-django-rest-framework/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=py3-django-rest-framework
+_pkgname=django-rest-framework
+pkgver=3.8.2
+pkgrel=2
+pkgdesc="Web APIs for Django"
+options="!check" # fails with "OperationalError: no such table: auth_user"
+url="https://github.com/encode/django-rest-framework"
+arch="noarch"
+license="Custom"
+depends="py3-django"
+makedepends="py3-setuptools"
+checkdepends="py3-pytest py3-tz py3-core-api py3-jinja2 py3-uritemplate"
+source="$pkgname-$pkgver.tar.gz::https://github.com/encode/$_pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ python3 setup.py --quiet build
+}
+
+check() {
+ python3 runtests.py
+}
+
+package() {
+ python3 setup.py --quiet install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="603c86a4741a37a22a2be273136eb4d1eaa0a07aa24ba97b67f9f8d4e7fa254fe9ca7d1fdd44ee9237e86ef4cfe6bdbc8f48954a92f91873c9ef0761813a43d2 py3-django-rest-framework-3.8.2.tar.gz"