summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45e7bdce42a8148a0c261eaf3305197efd2f734d (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
# Maintainer: Aseem Athale <athaleaseem@gmail.com>

_pkgname=langserve
pkgname="python-${_pkgname}"
pkgver=0.3.1
pkgrel=1
pkgdesc="A library to deploy LangChain runnables and chains as a REST API."
arch=('any')
url="https://github.com/langchain-ai/langserve"
license=('MIT')
depends=('python-httpx' 'python-fastapi' 'python-sse-starlette' 'python-langchain-core' 'python-orjson' 'python-pydantic')
makedepends=('python-build' 'python-installer' 'python-poetry' 'python-wheel')
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('d15f2c5386012046b17b4147a1502a1e4be239d53fb3e35d5cf08329d87404902bc314b12284cf42dc5f87ece778e012571ceac4289f0e95fbd4e3402c8d43ff')

build() {
    cd "${_pkgname}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${_pkgname}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}