blob: 4f103c8f475a80900a2d37ef36f067458672f42c (
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
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
pkgname=python-langchain
_pkgname="${pkgname#python-}"
pkgver=0.2.1
pkgrel=1
pkgdesc='Build context-aware reasoning applications'
arch=('any')
url='https://github.com/langchain-ai/langchain'
license=('MIT')
_src_name="${_pkgname%%-*}-${_pkgname}-${pkgver}"
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/langchain==${pkgver}.tar.gz")
sha256sums=('53b768336dc950c3526d9f5c95f3b8e49dbfeb5aeec8bdafa320e158c7599ced')
depends=(python
python-aiohttp
python-dataclasses-json
python-jsonpatch
python-numpy
python-pydantic
python-yaml
python-requests
python-sqlalchemy
python-tenacity
python-jsonschema
python-rapidfuzz
python-lark-parser
python-lxml
python-pandas
python-mypy_extensions
python-regex
python-typing_extensions
python-async-timeout
python-redis
python-beautifulsoup4
python-tiktoken
python-openai
)
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-poetry-core')
build() {
cd "${_src_name}/libs/${_pkgname}"
python -m build --wheel --no-isolation
}
package() {
cd "${_src_name}/libs/${_pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 "${srcdir}/${_src_name}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|