summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 84a90cbfce20886d4e0031a596885e7c5bdca401 (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
# Maintainer: Aaron Coach <aur at ezpz.cz>

pkgname=python-async_interrupt
_pkgname=async_interrupt
pkgver=1.1.1
pkgrel=2
pkgdesc="Python library that provides interrupt context manager for asyncio"
arch=('any')
url="https://github.com/bdraco/async_interrupt"
license=('Apache')
depends=('python')
makedepends=('python-poetry')
source=("https://files.pythonhosted.org/packages/source/a/async_interrupt/async_interrupt-${pkgver}.tar.gz")
sha256sums=('1e5999f0980b5db21293e4cd022518eeaf52284c0499631932a1df250cb99215')

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

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