summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAnthony Ruhier2017-04-07 14:52:45 +0200
committerAnthony Ruhier2017-04-07 14:52:45 +0200
commit205069712ee7304bdbf9b84dbec55966b02bde66 (patch)
tree7e90ab61b3c01ed0e7ef60ec798efb854b81f685 /PKGBUILD
downloadaur-205069712ee7304bdbf9b84dbec55966b02bde66.tar.gz
v0.10.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a3f752905ac
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Anthony25 <Anthony Ruhier>
+
+pkgbase=python-pytest-flask
+_pkgbase="${pkgbase#python-}"
+pkgname=(python-pytest-flask python2-pytest-flask)
+pkgver=0.10.0
+pkgrel=1
+pkgdesc="A set of pytest fixtures to test Flask applications."
+arch=(any)
+url='https://github.com/pytest-dev/pytest-flask'
+license=(MIT)
+makedepends=(
+ "python-pytest"
+ python-setuptools
+ "python2-pytest"
+ python2-setuptools
+)
+options=(!emptydirs)
+source=("https://github.com/pytest-dev/${_pkgbase}/archive/${pkgver}.tar.gz")
+sha256sums=('46751b8224189a77e47cf584acc577f9cf35fb6aa68ebc427a15590a8de5b08b')
+
+package_python-pytest-flask() {
+ depends=('python-flask' 'python-werkzeug')
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+}
+
+package_python2-pytest-flask() {
+ depends=('python2-flask' 'python2-werkzeug')
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et: