blob: 9e869ace8b73a7e7490ac53526428ff6e7f24731 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: enihcam <enihcam@archlinux>
# Contributor: Zirui Guo <guozirui@hku.hk>
#
# NOTE: This package has unlisted PyPI-only runtime dependencies that pacman
# cannot satisfy. Install them with pip before use:
# pip install --user nano-vectordb pipmaster pypinyin
pkgname=python-lightrag-hku
_pkgname=lightrag-hku
pkgver=1.5.5rc1
pkgrel=1
pkgdesc='LightRAG: Simple and Fast Retrieval-Augmented Generation'
arch=('any')
url='https://github.com/HKUDS/LightRAG'
license=('MIT')
depends=(
'python'
'python-aiohttp'
'python-configparser'
'python-dotenv'
'python-google-api-core'
'python-google-genai'
'python-json-repair'
'python-networkx'
'python-numpy'
'python-packaging'
'python-pandas'
'python-pydantic'
'python-yaml'
'python-tenacity'
'python-tiktoken'
'python-xlsxwriter'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
optdepends=(
'python-aiofiles: Async file operations'
'python-fastapi: API server support'
'python-httpx: HTTP client'
'python-openai: OpenAI provider'
'python-pycryptodome: PDF encryption support'
'python-pypdf: PDF processing'
'python-docx: DOCX processing'
'python-python-multipart: Form parsing'
'python-pptx: PPTX processing'
'python-pytz: Timezone support'
'uvicorn: ASGI server'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/HKUDS/LightRAG/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('9859a4d0d7ebfd10cd4dbcc1208707000c23b2262975dc956172c75a0a3e39247cd2078d60221debb7d024697aa5a094afb1a43bb66c0b0028b94ea3d913be03')
build() {
cd "LightRAG-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "LightRAG-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|