File PKGBUILD of Package python-coala_utils

# Maintainer: Muhammad Kaisar Arkhan <yuki@coala.io>
pkgname=python-coala_utils
pkgver=0.6.2
pkgrel=1
pkgdesc="A collection of coala utilities."
arch=('any')
url="https://coala.io/"
license=('MIT')
depends=(
            'python'
            'python-setuptools'
        )
makedepends=(
                'python-setuptools'
                'python-pip'
            )
provides=('python-coala_utils')
source=('https://pypi.io/packages/source/c/coala_utils/coala_utils-0.6.2.tar.gz')
sha256sums=('e18731a76c1c8c2d853203177c59576c4291d39bbe28734b1c5f62a64ca44b38')

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    sudo pip3 install -r requirements.txt -r test-requirements.txt --exists-action i
}

build() {
    cd "$srcdir/$pkgname-$pkgver"
    python3 setup.py build
}

check() {
    cd "$srcdir/$pkgname-$pkgver"
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    python3 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1
}