[arch-commits] Commit in python-meilisearch/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 17:34:19 UTC 2020
Date: Thursday, November 12, 2020 @ 17:34:19
Author: felixonmars
Revision: 752669
archrelease: copy trunk to community-staging-any
Added:
python-meilisearch/repos/community-staging-any/
python-meilisearch/repos/community-staging-any/PKGBUILD
(from rev 752667, python-meilisearch/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-meilisearch/repos/community-staging-any/PKGBUILD (from rev 752667, python-meilisearch/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 17:34:19 UTC (rev 752669)
@@ -0,0 +1,32 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=python-meilisearch
+pkgver=0.13.0
+pkgrel=2
+pkgdesc='Python client for MeiliSearch API'
+arch=(any)
+license=('MIT')
+url='https://pypi.org/project/meilisearch/'
+depends=(python)
+makedepends=(python-requests)
+checkdepends=('python-pytest' 'python-pytest-ordering')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/meilisearch/meilisearch-python/archive/v${pkgver}.tar.gz)
+sha512sums=('64e5a2365466a22a60082bd1669b15736515b2b96a4fcabf1ac190a94cc2159719088ab67ff002c3fd9d301bc058f6bcd7976e41905663e5bf3527b6f6775739')
+
+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