summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 352d460573bfe871d8ae9c2c09bfc6910d574807 (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
# Maintainer: Xuelin Yang <xuelin@adamantyee.cc>
pkgname=arxiv-mcp-server
pkgver=0.5.0
pkgrel=2
pkgdesc='A flexible arXiv search and analysis service with MCP protocol support'
arch=('any')
url='https://github.com/blazickjp/arxiv-mcp-server'
license=('Apache-2.0')
depends=(
	'python>=3.11'
	'python-aiofiles>=23.2.1'
	'python-aiohttp>=3.9.1'
	'python-anyio>=4.2.0'
	'python-arxiv>=2.1.0'
	'python-black>=25.1.0'
	'python-httpx>=0.24.0'
	'python-mcp>=1.27.0'
	'python-pymupdf-layout>=1.26.6'
	'python-pymupdf4llm>=0.0.17'
	'python-pydantic>=2.8.0'
	'python-pydantic-settings>=2.1.0'
	'python-dateutil>=2.8.2'
	'python-dotenv>=1.0.0'
	'python-sse-starlette>=1.8.2'
	'python-starlette>=0.27.0'
	'uvicorn>=0.30.0'
)
makedepends=(
	'python-build'
	'python-hatchling'
	'python-installer'
	'python-wheel'
)
checkdepends=(
	'python-aioresponses>=0.7.6'
	'python-pytest>=8.0.0'
	'python-pytest-asyncio>=0.23.5'
	'python-pytest-cov>=4.1.0'
	'python-pytest-mock>=3.10.0'
)
optdepends=(
	'python-numpy: semantic search support'
	'python-sentence-transformers: semantic search support'
)
_pypiname=arxiv_mcp_server
source=("https://files.pythonhosted.org/packages/source/a/${pkgname}/${_pypiname}-${pkgver}.tar.gz")
sha256sums=('bf1acacaafae3a0558b56aef8a470889d2eb6ba9f4185945bdf2b3b6b73b187f')

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

check() {
	cd "${_pypiname}-${pkgver}"
	PYTHONPATH="$PWD/src" pytest
}

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