blob: 3000887712aface79ba6b0561824a57815687e1d (
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
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
pkgname=python-langchain-core
_pkgname=${pkgname#python-}
pkgver=0.1.46
pkgrel=1
pkgdesc="Building applications with LLMs through composability"
url="https://pypi.org/project/langchain-core"
depends=(python
python-anyio
python-jsonpatch
python-langsmith
python-packaging
python-pydantic
python-yaml
python-requests
python-tenacity
python-jinja
python-typing_extensions
python-defusedxml)
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-poetry')
license=('MIT')
arch=('any')
_src_name="${_pkgname/-/_}-${pkgver}"
source=("https://pypi.org/packages/source/${_pkgname::1}/${_pkgname}/${_src_name}.tar.gz"
"https://github.com/langchain-ai/langchain/raw/v0.1.16/LICENSE")
sha256sums=('17c416349f5c7a9808e70e3725749a3a2df5088f1ecca045c883871aa95f9c9e'
'4ec67e4ca6e6721dba849b2ca82261597c86a61ee214bbf21416006b7b2d0478')
build() {
cd "${_src_name}"
python -m build --wheel --no-isolation
}
package() {
cd "${_src_name}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|