summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10acd870b645f1f427024d915a400a269e7a641a (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
# Maintainer: Gonçalo Pereira <goncalo_pereira@outlook.pt>
pkgname=python-wrapt-timeout-decorator
_name=wrapt_timeout_decorator
pkgver=1.5.1
pkgrel=1
pkgdesc="Powerful Timeout Decorator that can be used safely on classes, methods, class methods"
url="https://github.com/bitranox/wrapt_timeout_decorator"
depends=(
    'python'
    'python-cli-exit-tools'
    'python-lib-detect-testenv'
    'python-multiprocess'
    'python-psutil'
    'python-wrapt'
)
makedepends=(python-build python-installer python-wheel python-setuptools-scm)
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('00f15646db89c629aa1b1566f4c1cf00ae6da0beece2905039f1cd7a60506a67')

test() {
	cd "$srcdir/$_name-$pkgver"
	make test
}

build() {
  cd "$srcdir/$_name-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "$srcdir/$_name-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
}