blob: 098c36ec5afeb1c696de9e7e7d0d481db869888c (
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
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
# Contributor: Daniel Bershatsky <bepshatsky@yandex.ru>
_appauthor="brentyi"
_appname="tyro"
pkgname="python-${_appname}"
pkgver=1.0.17
pkgrel=1
pkgdesc="Strongly typed, zero-effort CLI interfaces"
_pypi_package=${pkgname##python-}
_pypi_version=${pkgver}
license=('MIT')
arch=('any')
_url_pypi="https://pypi.org/project/${_pypi_package}/"
_url_github="https://github.com/${_appauthor}/${_appname}"
url="${_url_github}"
makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-wheel')
depends=('python' 'python-msgspec' 'python-docstring-parser' 'python-pydantic' 'python-pytorch' 'python-typeguard' 'python-typing_extensions' 'python-attrs' 'python-yaml' 'python-universal_pathlib' 'python-shtab')
# source=("https://files.pythonhosted.org/packages/source/${_pypi_package::1}/${_pypi_package//-/_}/${_pypi_package//-/_}-${_pypi_version}.tar.gz")
source=("${_pypi_package}-${_pypi_version}.tar.gz::${_url_github}/archive/refs/tags/v${_pypi_version}.tar.gz")
sha256sums=('dc16e88e0016091771f8ff10b8c37698dea3f0373b1a5468a769f7cfe20bb319')
build() {
cd "${srcdir}/${_pypi_package//-/_}-${_pypi_version}/"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pypi_package//-/_}-${_pypi_version}/"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|