void-packages/srcpkgs/python-pretend/template

33 lines
813 B
Bash

# Template file for 'python-pretend'
pkgname=python-pretend
version=1.0.9
revision=1
archs=noarch
wrksrc="pretend-${version}"
build_style=python-module
pycompile_module="pretend"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Make stubbing with Python2 easier"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="BSD-3-Clause"
homepage="https://github.com/alex/pretend"
distfiles="${PYPI_SITE}/p/pretend/pretend-${version}.tar.gz"
checksum=c90eb810cde8ebb06dafcb8796f9a95228ce796531bc806e794c2f4649aa1b10
post_install() {
vdoc README.rst
vlicense LICENSE.rst
}
python3-pretend_package() {
depends="python3"
pycompile_module="pretend"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vdoc README.rst
vlicense LICENSE.rst
}
}