# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-psutil _pkgname=psutil pkgver=5.9.5 pkgrel=1 pkgdesc="A cross-platform process and system utilities module for Python" url="https://github.com/giampaolo/psutil" arch="all" license="BSD-3-Clause" makedepends="linux-headers python3-dev" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-psutil" # Backwards compatibility provides="py-psutil=$pkgver-r$pkgrel" # Backwards compatibility # secfixes: # 5.6.7-r0: # - CVE-2019-18874 build() { python3 setup.py build } check() { python3 setup.py check } package() { python3 setup.py install --skip-build --root="$pkgdir" rm -r "$pkgdir"/usr/lib/python3*/site-packages/psutil/tests/ } sha512sums=" 2afe1bad5359aeac90378faaa609bab855dfcaa58519c939fdadb02e6e2c8157c77f961ac0f90d104626cef3429e1ea2f686e4dc4c9dccf975e3e73e9b08872c psutil-5.9.5.tar.gz "