[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Tue Oct 10 07:03:28 UTC 2017


    Date: Tuesday, October 10, 2017 @ 07:03:27
  Author: felixonmars
Revision: 262270

addpkg: python-elasticsearch 5.4.0-1

Added:
  python-elasticsearch/
  python-elasticsearch/repos/
  python-elasticsearch/trunk/
  python-elasticsearch/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Added: python-elasticsearch/trunk/PKGBUILD
===================================================================
--- python-elasticsearch/trunk/PKGBUILD	                        (rev 0)
+++ python-elasticsearch/trunk/PKGBUILD	2017-10-10 07:03:27 UTC (rev 262270)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-elasticsearch
+pkgname=('python-elasticsearch' 'python2-elasticsearch')
+pkgver=5.4.0
+pkgrel=1
+arch=('any')
+pkgdesc='Python client for Elasticsearch'
+url='https://github.com/elastic/elasticsearch-py'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-urllib3' 'python2-urllib3')
+checkdepends=('python-nose' 'python2-nose' 'python-requests' 'python2-requests' 'python-coverage'
+              'python2-coverage' 'python-mock' 'python2-mock' 'python-pyaml' 'python2-pyaml'
+              'python-nosexcover' 'python2-nosexcover')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/elastic/elasticsearch-py/archive/$pkgver.tar.gz")
+sha512sums=('9d30ffa810f495662769e6d2f2627f9ef6aa3849bc2eecd09df28c05a036b8fb15ae465914c38eeb3d854683bc150a3c56425388312bcd112bd5cc7b33ad41ae')
+
+prepare() {
+  cp -a elasticsearch-py-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/elasticsearch-py-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/elasticsearch-py-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/elasticsearch-py-$pkgver
+  python setup.py nosetests
+
+  cd "$srcdir"/elasticsearch-py-$pkgver-py2
+  python2 setup.py nosetests
+}
+
+package_python-elasticsearch() {
+  depends=('python-urllib3')
+
+  cd elasticsearch-py-$pkgver
+  python setup.py install --root "$pkgdir" --optimize=1
+}
+
+package_python2-elasticsearch() {
+  depends=('python2-urllib3')
+
+  cd elasticsearch-py-$pkgver-py2
+  python2 setup.py install --root "$pkgdir" --optimize=1
+}


Property changes on: python-elasticsearch/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list