void-packages/srcpkgs/python-SPARQLWrapper/template

34 lines
1.0 KiB
Bash

# Template file for 'python-SPARQLWrapper'
pkgname=python-SPARQLWrapper
version=1.7.6
revision=2
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-rdflib python-keepalive"
pycompile_module="SPARQLWrapper"
short_desc="SPARQL Endpoint interface to Python (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://rdflib.github.io/sparqlwrapper/"
license="W3C"
distfiles="${PYPI_SITE}/S/SPARQLWrapper/SPARQLWrapper-${version}.tar.gz"
checksum=dccabec900eb9c97cb47834bd4b66ceaeb4d9ea11bae24a24fe734e9f48522f8
python3-SPARQLWrapper_package() {
noarch=yes
depends="python3-rdflib python3-keepalive"
replaces="python3.4-SPARQLWrapper>=0"
pycompile_module="SPARQLWrapper"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-SPARQLWrapper_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-SPARQLWrapper>=${version}_${revision}"
}