1 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
3 pkgname=python-setproctitle
6 pkgdesc="Allows a python process to change its process title"
8 url="https://github.com/dvarrazzo/py-setproctitle"
10 makedepends=(python-setuptools python-wheel python-build python-installer)
11 checkdepends=('python-pytest' 'procps-ng')
13 source=(https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-$pkgver.tar.gz)
14 sha256sums=('b9fb97907c830d260fa0658ed58afd48a86b2b88aac521135c352ff7fd3477fd')
17 cd "$srcdir"/setproctitle-$pkgver
18 python -m build --wheel --no-isolation
22 local _pyver=$(python -c "import sys; print('{0}{1}'.format(*sys.version_info[:2]))")
23 cd "$srcdir"/setproctitle-$pkgver/build/lib.linux-$CARCH-cpython-$_pyver
24 python -m pytest ../../tests
27 package_python-setproctitle() {
28 cd "$srcdir"/setproctitle-$pkgver
29 python -m installer --destdir="$pkgdir" dist/*.whl
30 install -m0644 -D COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"