blob: 850c74195c4cf79f466d98212ee6f5018ef713b2 (
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
41
42
43
44
|
# Maintainer: Umar Alfarouk <medrivia@gmail.com>
_pkgname=fastembed
pkgname=python-fastembed
pkgver=0.8.0
pkgrel=1
pkgdesc="Fast, lightweight Python library for embedding generation using ONNX Runtime"
arch=('x86_64' 'aarch64')
url="https://github.com/qdrant/fastembed"
license=('Apache-2.0')
depends=(
'python'
'python-numpy'
'python-onnxruntime'
'python-tqdm'
'python-requests'
'python-tokenizers'
'python-huggingface-hub'
'python-loguru'
'python-pillow'
'python-mmh3'
'python-py-rust-stemmers'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-poetry-core'
)
provides=('python-fastembed')
conflicts=('python-fastembed')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/qdrant/fastembed/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('dfbd66af91d80882fbbab922e7ab07cae4d611afa1930754a51a26c5fe08db84')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
|