# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Andrew Crerar <crerar@archlinux.org>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Hideaki Takahashi <mymelo+aur@gmail.com>
# Contributor: Vincent Demeester <vincent@sbr.pm>

pkgname=python-docker-pycreds
pkgver=0.4.0
pkgrel=11
pkgdesc="Python bindings for the docker credentials store API"
arch=(any)
license=('Apache')
url="https://github.com/shin-/dockerpy-creds"
depends=('python-six')
makedepends=('python-setuptools')
checkdepends=('python-pytest' 'flake8' 'python-pytest-cov')
source=("$pkgname-$pkgver.tar.gz::https://github.com/shin-/dockerpy-creds/archive/$pkgver.tar.gz")
sha512sums=('5c7c75a654693c6439592201bba6082af2962fab8d25af980ebb3ad2aede42973c31dbc2693eea1212f911980725bab257f973c7498b3555f68fae1630cfc62c')

build() {
  cd "$srcdir"/dockerpy-creds-$pkgver
  python setup.py build
}

check_disabled() {
  cd "$srcdir"/dockerpy-creds-$pkgver
  pytest
}

package() {
  cd dockerpy-creds-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
}
