void-packages/srcpkgs/python-cssselect/template

34 lines
964 B
Bash
Raw Normal View History

# Template file for 'python-cssselect'
pkgname=python-cssselect
version=0.9.1
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style="python-module"
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
depends="python"
pycompile_module="cssselect"
short_desc="CSS selectors for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://pypi.python.org/pypi/cssselect"
license="BSD"
distfiles="https://pypi.python.org/packages/source/c/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz"
checksum=0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682
pre_install() {
sed -i 's,#!/usr/bin/env python,&3.4,' build-3.4/lib/cssselect/tests.py
}
python3.4-cssselect_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="cssselect"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}