void-packages/srcpkgs/python-pretend/template

30 lines
745 B
Bash

# Template file for 'python-pretend'
pkgname=python-pretend
version=1.0.9
revision=4
wrksrc="pretend-${version}"
build_style=python-module
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"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vdoc README.rst
vlicense LICENSE.rst
}
}