blob: 36c8c9a2d4c21df6da5deb46b3edcfda9863cf4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Jean Lucas <jean@4ray.co>
_base=elasticsearch-dsl
pkgname=python-${_base}
pkgver=8.18.0
pkgrel=1
pkgdesc="Python client for Elasticsearch"
arch=(any)
url="https://github.com/elastic/${_base}-py"
license=(Apache-2.0)
depends=(python-elasticsearch python-dateutil python-typing_extensions)
makedepends=(python-build python-installer python-setuptools python-wheel) # python-sphinx_rtd_theme
# checkdepends=(python-pytest-mock python-mock python-pytest-asyncio python-nltk
# python-sentence-transformers)
source=(${_base}-py-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
sha512sums=('a799e75558c5fc8400393a56d48c7b89ffc7b11eefc2f8d42e5632d548a543780cdb851c870f9f1cd3a723063dc02a2238de32b4412a4729112518d15b0e779e')
build() {
cd ${_base}-py-${pkgver}
python -m build --wheel --skip-dependency-check --no-isolation
# cd docs
# PYTHONPATH="${srcdir}/${_base}-py-${pkgver}/build/lib/:${PYTHONPATH}" make man
}
# check() {
# cd ${_base}-py-${pkgver}
# python -m venv --system-site-packages test-env
# test-env/bin/python -m installer dist/*.whl
# test-env/bin/python -m pytest tests
# }
package() {
cd ${_base}-py-${pkgver}
PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
# install -Dm 644 docs/_build/man/${_base}.1 -t "${pkgdir}/usr/share/man/man1"
install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
cp -a examples "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|