summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-werkzeug
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-19 03:08:11 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-19 03:08:11 (GMT)
commitfc80335fca41c56830b6c936fe63ddd80d835997 (patch)
treedbf506f7143ea6bcec5831aa454e4d98cc8b2be2 /abs/core/python_modules/python-werkzeug
parent5f7cd18e06554a20533f1dee8012ab22da304dd6 (diff)
downloadlinhes_pkgbuild-fc80335fca41c56830b6c936fe63ddd80d835997.zip
linhes_pkgbuild-fc80335fca41c56830b6c936fe63ddd80d835997.tar.gz
linhes_pkgbuild-fc80335fca41c56830b6c936fe63ddd80d835997.tar.bz2
python-werkzeug: initial inclusion. dep of flexget
Diffstat (limited to 'abs/core/python_modules/python-werkzeug')
-rw-r--r--abs/core/python_modules/python-werkzeug/PKGBUILD61
-rw-r--r--abs/core/python_modules/python-werkzeug/__changelog1
2 files changed, 62 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-werkzeug/PKGBUILD b/abs/core/python_modules/python-werkzeug/PKGBUILD
new file mode 100644
index 0000000..b8bfd64
--- /dev/null
+++ b/abs/core/python_modules/python-werkzeug/PKGBUILD
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Dan Serban
+# Contributor: Richard Murri
+
+pkgname=('python2-werkzeug')
+pkgver=0.12.2
+pkgrel=1
+pkgdesc='Swiss Army knife of Python web development'
+url='http://werkzeug.pocoo.org/'
+arch=('any')
+license=('custom:BSD')
+makedepends=('python2-setuptools' 'python2-pytest' 'python2-requests')
+source=("https://github.com/pallets/werkzeug/archive/${pkgver}.tar.gz")
+sha512sums=('e0a27fb37599bd93c9e3e282e1f7f8e2bc9c2be30cce32d1b8a9788cbf998c3337061ade1cbe76858a64da0ebc89112b905567d561354af1b7d86cbd9a56c27d')
+
+prepare() {
+ cp -r "werkzeug-$pkgver" "python-werkzeug-$pkgver"
+ cp -r "werkzeug-$pkgver" "python2-werkzeug-$pkgver"
+}
+
+build_python-werkzeug() {
+ cd "$pkgname-$pkgver"
+
+ python setup.py build
+}
+
+build_python2-werkzeug() {
+ cd "$pkgname-$pkgver"
+
+ python2 setup.py build
+}
+
+#check() {
+# cd "python-werkzeug-$pkgver"
+# python setup.py test
+#
+# cd "python-werkzeug-$pkgver"
+# p3ython2 setup.py test
+#}
+
+package_python-werkzeug() {
+ depends+=('python')
+ cd "$pkgname-$pkgver"
+
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-werkzeug() {
+ depends+=('python2')
+ cd "$pkgname-$pkgver"
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# getver: https://github.com/mitsuhiko/werkzeug
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-werkzeug/__changelog b/abs/core/python_modules/python-werkzeug/__changelog
new file mode 100644
index 0000000..60db758
--- /dev/null
+++ b/abs/core/python_modules/python-werkzeug/__changelog
@@ -0,0 +1 @@
+PKGBUILD: remove py3 stuff