diff options
author | atomlong | 2021-11-08 22:23:07 +0800 |
---|---|---|
committer | atomlong | 2021-11-08 22:23:07 +0800 |
commit | 4a5e5459f73f6e1cd9f5d2db4396eeae35d94a2c (patch) | |
tree | bcb5c7cdea88655b4c15b044cbf8a3ea42748ec4 /PKGBUILD | |
download | aur-4a5e5459f73f6e1cd9f5d2db4396eeae35d94a2c.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a5e7686a2c66 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Stunts <f.pinamartins[at]gmail.com> +# Contributor: Phil Schaf <flying-sheep[at]web.de> +# Contributor: Carl George < arch at cgtx dot us > + +_pkgname=async-timeout +pkgname=python-${_pkgname}-git +pkgver=4.0.0.r2.g77f0cba +pkgrel=1 +pkgdesc='Asyncio-compatible timeout class' +url='https://github.com/aio-libs/async-timeout' +arch=('any') +license=('Apache') +depends=('python') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-asyncio' 'python-pytest-aiohttp') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=(${_pkgname}::git+${url}) +sha256sums=('SKIP') + +build() { + cd ${_pkgname} + python setup.py build +} + +check() { + cd ${_pkgname} + PYTHONPATH=. py.test tests +} + + +package() { + cd ${_pkgname} + python setup.py install --root="${pkgdir}" -O1 --skip-build +} + +# vim: ts=2 sw=2 et: |