[arch-commits] Commit in python-meilisearch/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Dec 2 23:36:31 UTC 2021


    Date: Thursday, December 2, 2021 @ 23:36:31
  Author: foutrelis
Revision: 1063174

archrelease: copy trunk to community-staging-any

Added:
  python-meilisearch/repos/community-staging-any/
  python-meilisearch/repos/community-staging-any/PKGBUILD
    (from rev 1063173, python-meilisearch/trunk/PKGBUILD)

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

Copied: python-meilisearch/repos/community-staging-any/PKGBUILD (from rev 1063173, python-meilisearch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 23:36:31 UTC (rev 1063174)
@@ -0,0 +1,32 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=python-meilisearch
+pkgver=0.16.2
+pkgrel=2
+pkgdesc='Python client for MeiliSearch API'
+arch=(any)
+license=('MIT')
+url='https://pypi.org/project/meilisearch/'
+depends=(python)
+makedepends=(python-requests python-setuptools)
+checkdepends=('python-pytest' 'python-pytest-ordering')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/meilisearch/meilisearch-python/archive/v${pkgver}.tar.gz)
+sha512sums=('2455b147b67ab5334ee66fdee3e45b07aaf85a273fa003852530e18a8ba616e5167c475df732a3149c2e975e453aaf198f574cfaad31b85601dbf140f271891d')
+
+build() {
+  cd "meilisearch-python-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  # requires running meilisearch https://github.com/meilisearch/meilisearch-python/blob/master/.github/workflows/test.yml#L20
+  cd "meilisearch-python-${pkgver}"
+  #pytest .
+}
+
+package() {
+  cd "meilisearch-python-${pkgver}"
+  python setup.py install -O1 --root="${pkgdir}"
+
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list