mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
30 lines
941 B
Text
30 lines
941 B
Text
# 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"
|