void-packages/srcpkgs/python-psutil/template
2014-10-05 13:03:09 +02:00

30 lines
835 B
Text

# Template file for 'python-psutil'
pkgname=python-psutil
version=2.1.3
revision=1
wrksrc="psutil-${version}"
build_style="python-module"
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
pycompile_module="psutil"
maintainer="Steven R <dev@styez.com>"
homepage="https://github.com/giampaolo/psutil"
license="BSD"
short_desc="Cross-platform process and system utilities module for Python2"
distfiles="${PYPI_SITE}/p/psutil/psutil-${version}.tar.gz"
checksum=b434c75f01715777391f10f456002e33d0ca14633f96fdbd9ff9139b42d9452c
pre_build() {
# remove shebangs
sed -i '1d' psutil/*.py
}
python3.4-psutil_package() {
pycompile_version="3.4"
pycompile_module="psutil"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}