aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-django-taggit-serializer
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-08-22 13:08:05 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-08-22 13:11:34 +0000
commit2c06ae990d304440b91441db5981ee5f30635da3 (patch)
tree02ef1665f95a992937464e74cc19764c7b3b981b /testing/py-django-taggit-serializer
parenta1811fcf40388c88cf903dada558622e534a2b25 (diff)
downloadaports-2c06ae990d304440b91441db5981ee5f30635da3.tar.bz2
aports-2c06ae990d304440b91441db5981ee5f30635da3.tar.xz
testing/py-django-taggit-serializer: new aport
The Django Taggit Serializer Created for the Django REST Framework
Diffstat (limited to 'testing/py-django-taggit-serializer')
-rw-r--r--testing/py-django-taggit-serializer/APKBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/py-django-taggit-serializer/APKBUILD b/testing/py-django-taggit-serializer/APKBUILD
new file mode 100644
index 0000000000..f658de7dd3
--- /dev/null
+++ b/testing/py-django-taggit-serializer/APKBUILD
@@ -0,0 +1,57 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=py-django-taggit-serializer
+pkgver=0.1.7
+pkgrel=0
+pkgdesc="The Django Taggit Serializer Created for the Django REST Framework"
+url="https://github.com/glemmaPaul/django-taggit-serializer"
+arch="noarch"
+license="BSD-3-Clause"
+depends="py-django"
+makedepends="python2-dev python3-dev py2-setuptools"
+#checkdepends="py-django-rest-framework py-django-taggit py-nose py-django-nose"
+options="!check" # missing depends
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+source="$pkgname-$pkgver.tar.gz::https://github.com/glemmaPaul/django-taggit-serializer/archive/$pkgver.tar.gz"
+builddir="$srcdir"/django-taggit-serializer-$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="e4f2dcabac8e4afa9b6969bbb8718e2e5047ec97dab80f800ad73c3f59da438b8e9becbcce1af0c986a4a903a9846ca85db58d2135658d7103caee69431b59a5 py-django-taggit-serializer-0.1.7.tar.gz"