void-packages/srcpkgs/python-path/template
2015-10-05 07:58:00 +02:00

34 lines
886 B
Bash

# Template file for 'python-path'
pkgname=python-path
version=8.1.2
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="${PYPI_SITE}/p/path.py/path.py-${version}.tar.gz"
checksum=ada95d117c4559abe64080961daf5badda68561afdd34c278f8ca20f2fa466d2
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
}
}