blob: 06996a0eb6c4ec8e7052990bcceb31e2b36d0ad1 (
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
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
pkgname=python-langchain
pkgver=0.1.9
pkgrel=1
pkgdesc='Build context-aware reasoning applications'
arch=('any')
url='https://github.com/langchain-ai/langchain'
license=('MIT')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/langchain-ai/langchain/archive/refs/tags/v${pkgver}.tar.gz"
"https://raw.githubusercontent.com/langchain-ai/langchain/v${pkgver}/LICENSE")
sha256sums=('f9271c24135306e42b4f730570caee5a49ce1f86f328916f6e505e4ce500c8ce'
'4ec67e4ca6e6721dba849b2ca82261597c86a61ee214bbf21416006b7b2d0478')
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 langchain-${pkgver}/libs/langchain
python -m build --wheel --no-isolation
}
package() {
cd langchain-${pkgver}/libs/langchain
python -m installer --destdir="${pkgdir}" dist/*.whl
cd ${srcdir}
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|