[arch-commits] Commit in (4 files)

David Runge dvzrv at archlinux.org
Fri Jan 31 10:59:43 UTC 2020


    Date: Friday, January 31, 2020 @ 10:59:43
  Author: dvzrv
Revision: 560585

Adding python-pysolr as checkdepends for python-django-haystack.

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

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

Added: python-pysolr/trunk/PKGBUILD
===================================================================
--- python-pysolr/trunk/PKGBUILD	                        (rev 0)
+++ python-pysolr/trunk/PKGBUILD	2020-01-31 10:59:43 UTC (rev 560585)
@@ -0,0 +1,47 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pysolr
+pkgname=python-pysolr
+pkgver=3.8.1
+pkgrel=1
+pkgdesc="Python Solr client"
+arch=('any')
+url="https://github.com/django-haystack/pysolr"
+license=('BSD')
+depends=('python-requests')
+makedepends=('python-setuptools-scm')
+# checkdepends=('python-mock' 'python-pytest' 'solr' 'zookeeper')
+optdepends=('python-kazoo: for solrcloud'
+            'python-simplejson: for JSON support'
+            'solr: for interfacing a local solr instance')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('34489f32cdcbcb7e8109d6d94339fcb200b1367a188a0b9fedf587a77cd64412570b3a796a4da4e0abe6fa3e443a401c4dc0e4946bdc437dd810fee7eabd54a4')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+# tests vendor solr *and* zookeeper (including download)
+# TODO: write own test script to replace start-solr-test-server.sh
+# TODO: package zookeeper, as it's also required for tests
+# check() {
+#   cd "$pkgname-$pkgver"
+#   export PYTHONPATH="build:${PYTHONPATH}"
+#   python run-tests.py
+# }
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 {AUTHORS,{CHANGELOG,README}.rst} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list