packages/python-simpervisor/PKGBUILD
Anthony Wang db57ad1681 Add 'python-simpervisor/' from commit '998e88622958ec71b200259f074ad297a4b9c8f2'
git-subtree-dir: python-simpervisor
git-subtree-mainline: 2d0eea303e
git-subtree-split: 998e886229
2023-11-11 19:09:18 -05:00

25 lines
758 B
Bash

# Maintainer: Anthony Wang <a_at-exozy_dot-me>
_name='simpervisor'
pkgname="python-$_name"
pkgver='1.0.0'
pkgrel=1
pkgdesc="Simple async process supervisor"
url="https://github.com/yuvipanda/simpervisor"
depends=(python)
makedepends=(python-build python-installer python-hatch-jupyter-builder)
license=('BSD')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('7eb87ca86d5e276976f5bb0290975a05d452c6a7b7f58062daea7d8369c823c1')
build() {
cd "${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_name}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}