blob: 8052de72d018bc802b1ba7765f28de29b5e29b2d (
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
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
_appauthor="codebydivine"
_appname="divine-async-runner"
pkgname="python-${_appname}"
pkgver=0.1.7
pkgrel=1
pkgdesc="A unified async process runner with configurable output handling and robust error management"
_pypi_package=${pkgname##python-}
_pypi_version=${pkgver}
license=('MIT')
arch=('any')
_url_pypi="https://pypi.org/project/${_pypi_package}/"
url="${_url_pypi}"
makedepends=('python-setuptools' 'python-wheel' 'python-build' 'python-installer' 'python-uv-build' 'python-hatchling')
depends=('python' 'python-anyio')
source=("https://files.pythonhosted.org/packages/source/${_pypi_package::1}/${_pypi_package//-/_}/${_pypi_package//-/_}-${_pypi_version}.tar.gz")
sha256sums=('405d4c406f2dd51fb8f188d9aea3f2bbc0bf45dc38c839b23cf0ada9ae82acdd')
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"
}
|