blob: 852069eae4028019649ed1a69c48325ea214f5bd (
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
|
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
_name=exa-py
pkgname=python-$_name
pkgver=2.16.0
pkgrel=1
pkgdesc="Python SDK for Exa API."
arch=('any')
url="https://github.com/exa-labs/exa-py"
license=('MIT')
depends=('python' 'python-requests' 'python-typing_extensions' 'python-openai' 'python-pydantic' 'python-httpx' 'python-httpcore' 'python-dotenv')
makedepends=('python-poetry-core' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-mock')
source=("$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('07083955862094140ac523782890b5261899fb9385d9ee13b68976ce56852f57')
build() {
cd "$srcdir"/$_name-$pkgver
python -m build --wheel --no-isolation
}
check() {
local pytest_options=(
-vv
--disable-warnings
--override-ini="addopts="
)
cd "$srcdir"/$_name-$pkgver
PYTHONPATH=$PWD pytest "${pytest_options[@]}" tests
}
package() {
cd "$srcdir"/$_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
|