summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-19 02:34:42 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-19 02:34:42 (GMT)
commit356d36bb61f5726e33788b8778bf778bf7b98dcc (patch)
treeb0a80456969918ee55e15e13337d055eac1e93b7 /abs/core/python_modules
parentac6e65e390ce56784b52515c7334145796561d0b (diff)
downloadlinhes_pkgbuild-356d36bb61f5726e33788b8778bf778bf7b98dcc.zip
linhes_pkgbuild-356d36bb61f5726e33788b8778bf778bf7b98dcc.tar.gz
linhes_pkgbuild-356d36bb61f5726e33788b8778bf778bf7b98dcc.tar.bz2
python_cherrypy: initial inclusion. dep of flexget
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r--abs/core/python_modules/python-cherrypy/PKGBUILD60
-rw-r--r--abs/core/python_modules/python-cherrypy/__changelog1
2 files changed, 61 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-cherrypy/PKGBUILD b/abs/core/python_modules/python-cherrypy/PKGBUILD
new file mode 100644
index 0000000..5fd491b
--- /dev/null
+++ b/abs/core/python_modules/python-cherrypy/PKGBUILD
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy@gmail.com>
+# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
+# Contributor: Armando M. Baratti <amblistas@ajato.com.br>
+# Contributor: Florian Richter <Florian_Richter@gmx.de>
+pkgname=('python2-cherrypy')
+pkgver=8.9.1
+pkgrel=1
+pkgdesc="A pythonic, object-oriented web development framework"
+arch=('any')
+url="http://www.cherrypy.org"
+license=('BSD')
+makedepends=('python2' 'python2-setuptools')
+checkdepends=('python2-mock')
+source=("https://pypi.python.org/packages/56/aa/91005730bdc5c0da8291a2f411aacbc5c3729166c382e2193e33f28044a3/CherryPy-8.9.1.tar.gz")
+md5sums=('7abe5198e48f14cfee57a07d23875a4b')
+
+build() {
+ cp -r CherryPy-${pkgver} CherryPy-${pkgver}-py2
+
+# cd CherryPy-${pkgver}
+# python ./setup.py build
+
+ cd "${srcdir}/CherryPy-${pkgver}-py2"
+ python2 ./setup.py build
+}
+
+package_python-cherrypy() {
+ depends=('python' 'python-six')
+
+ cd CherryPy-${pkgver}
+
+ python ./setup.py install --root="${pkgdir}" --optimize=1
+
+ install -Dm644 LICENSE.md \
+ "${pkgdir}/usr/share/licenses/python-cherrypy/LICENSE.md"
+}
+
+package_python2-cherrypy() {
+ depends=('python2')
+
+ cd CherryPy-${pkgver}-py2
+
+ python2 ./setup.py install --root="${pkgdir}" --optimize=1
+ mv "${pkgdir}/usr/bin/cherryd" "${pkgdir}/usr/bin/cherryd2"
+
+ install -Dm644 LICENSE.md \
+ "${pkgdir}/usr/share/licenses/python2-cherrypy/LICENSE.md"
+}
+
+check() {
+ # backports.unittest_mock is not packaged..
+ cd CherryPy-${pkgver}-py2/cherrypy
+ #LANG="en_US.UTF-8" pytest2 test/
+
+ cd $srcdir/CherryPy-${pkgver}/cherrypy
+ LANG="en_US.UTF-8" nosetests test/
+
+}
diff --git a/abs/core/python_modules/python-cherrypy/__changelog b/abs/core/python_modules/python-cherrypy/__changelog
new file mode 100644
index 0000000..60db758
--- /dev/null
+++ b/abs/core/python_modules/python-cherrypy/__changelog
@@ -0,0 +1 @@
+PKGBUILD: remove py3 stuff