# Template file for 'python3-arxiv'
pkgname=python3-arxiv
version=2.4.1
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
depends="python3-feedparser python3-requests python3-typing_extensions"
checkdepends="${depends} python3-pytest"
short_desc="Wrapper for the arXiv API"
maintainer="orahcio <orahcio@gmail.com>"
license="MIT"
homepage="https://github.com/lukasschwab/arxiv.py"
distfiles="https://github.com/lukasschwab/arxiv.py/archive/refs/tags/${version}.tar.gz"
checksum=049407471fb6cd371035674df3651e6d61e47b01676e781d3eedf5e664470b96
make_check=no # test_result.py failed, HTTPError

pre_build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
}

post_install() {
	vlicense LICENSE.txt
}
