void-packages/srcpkgs/python-docker-py/template

34 lines
1.1 KiB
Bash

# Template file for 'python-docker-py'
pkgname=python-docker-py
version=1.9.0
revision=3
noarch=yes
wrksrc="docker-py-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-requests python-six python-websocket-client python-ipaddress
python-backports.ssl_match_hostname"
pycompile_module="docker"
short_desc="Python2 client for Docker"
maintainer="Sergi Alvarez <pancake@nopcode.org>"
homepage="https://github.com/docker/docker-py"
license="Apache-2.0"
distfiles="${PYPI_SITE}/d/docker-py/docker-py-${version}.tar.gz"
checksum=6dc6b914a745786d97817bf35bfc1559834c08517c119f846acdfda9cc7f6d7e
python3-docker-py_package() {
noarch=yes
depends="python3-requests python3-six python3-websocket-client"
pycompile_module="docker"
replaces="python3.4-docker-py>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-docker-py_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-docker-py>=${version}_${revision}"
}