void-packages/srcpkgs/python-path/template

35 lines
963 B
Bash

# Template file for 'python-path'
pkgname=python-path
version=8.2.1
revision=1
noarch=yes
wrksrc="path.py-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
pycompile_module="path.py"
short_desc="Python2 module wrapper for os.path"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jaraco/path.py"
license="MIT"
distfiles="https://pypi.python.org/packages/85/80/d13c3e5058c14f0bf3c19e9596a70f1e805fcda8510531f338b9e96cc5c7/path.py-${version}.tar.gz"
checksum=c9ad2d462a7f8d7f6f6d2b89220bd50425221e399a4b8dfe5fa6725eb26fd708
pre_build() {
sed -e '/setuptools_scm/d' \
-e "s/use_scm_version=True,/version=\"${version}\",/" \
-i setup.py
}
python3.4-path_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="path.py"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}