diff --git a/testing/py-django-rest-swagger/APKBUILD b/testing/py-django-rest-swagger/APKBUILD
new file mode 100644
index 0000000000000000000000000000000000000000..513b81074d892fa2febd21326e456851cfc4b0e7
--- /dev/null
+++ b/testing/py-django-rest-swagger/APKBUILD
@@ -0,0 +1,56 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=py-django-rest-swagger
+pkgver=2.0.5
+pkgrel=0
+pkgdesc="Swagger Documentation Generator for Django REST Framework"
+url="https://github.com/marcgibbons/django-rest-swagger"
+arch="noarch"
+license="Custom"
+depends="py-django py-django-rest-framework py-core-api py-openapi-codec
+	py-simplejson"
+makedepends="python2-dev python3-dev py2-setuptools"
+checkdepends="py-tz py-jinja2 py-uritemplate py-mock"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+source="$pkgname-$pkgver.tar.gz::https://github.com/marcgibbons/django-rest-swagger/archive/$pkgver.tar.gz"
+builddir="$srcdir"/django-rest-swagger-$pkgver
+
+build() {
+	cd "$builddir"
+	python2 setup.py --quiet build
+	python3 setup.py --quiet build
+}
+
+package() {
+	cd "$builddir"
+	mkdir -p "$pkgdir"/usr/bin
+}
+
+check() {
+	cd "$builddir"
+	python2 runtests.py
+	python3 runtests.py
+}
+
+_py2() {
+	depends="${depends//py-/py2-}"
+	_py python2
+}
+
+_py3() {
+	depends="${depends//py-/py3-}"
+	_py python3
+}
+
+_py() {
+	local python="$1"
+	local pyver="${1:6:1}"
+	pkgdesc="$pkgdesc (for $python)"
+	depends="$depends $python"
+	install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+	cd "$builddir"
+	$python setup.py --quiet install --prefix=/usr --root="$subpkgdir"
+}
+
+sha512sums="a6ff5896d7c5c1439763ee51e11fb8b278ff83999e5b35f94413550474f48530038bbd4772e38c915676219129a93cd72122be557e6943902105b15e35b7b157  py-django-rest-swagger-2.0.5.tar.gz"