void-packages/srcpkgs/python-path/template

35 lines
886 B
Bash
Raw Normal View History

2015-02-19 09:17:56 +00:00
# Template file for 'python-path'
pkgname=python-path
2015-10-05 05:58:00 +00:00
version=8.1.2
2015-02-19 09:17:56 +00:00
revision=1
noarch=yes
wrksrc="path.py-${version}"
2015-08-21 23:51:15 +00:00
build_style=python-module
2015-02-19 09:17:56 +00:00
python_versions="2.7 3.4"
2015-09-13 11:00:00 +00:00
hostmakedepends="python-setuptools python3.4-setuptools"
2015-02-19 09:17:56 +00:00
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"
2015-07-13 22:40:00 +00:00
distfiles="${PYPI_SITE}/p/path.py/path.py-${version}.tar.gz"
2015-10-05 05:58:00 +00:00
checksum=ada95d117c4559abe64080961daf5badda68561afdd34c278f8ca20f2fa466d2
2015-09-13 11:00:00 +00:00
pre_build() {
sed -e '/setuptools_scm/d' \
-e "s/use_scm_version=True,/version=\"${version}\",/" \
-i setup.py
}
2015-02-19 09:17:56 +00:00
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
}
}