# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=docker-py
pkgver=3.1.4
pkgrel=0
pkgdesc="An API client for docker written in Python"
url="https://github.com/dotcloud/docker-py"
arch="noarch"
license="Apache"
depends="python2 py2-requests py2-six py2-websocket-client dockerpy-creds
	py-ipaddress py-cffi py2-cparser py2-idna py2-packaging 
	py2-parsing py2-cryptography py-enum34 py2-asn1crypto"
makedepends="python2-dev py2-pip py-setuptools py2-six flake8 py-mock"
source="$pkgname-$pkgver.tar.gz::https://github.com/docker/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

check() {
	cd "$builddir"
	python2 setup.py check
}

build() {
	cd "$builddir"
	python2 setup.py build
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="78081010ce4027156d3b4ebafee6023f387ee8e7ee4d77ee671a16a3fcb646fca91c5c36cfbaf94157f8a524a3e1a09b9cbfabf304e278a3c1e0132df5d13d13  docker-py-3.1.4.tar.gz"
