31 lines
808 B
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Bruno Pagani <archange@archlinux.org>
_pkg=pytest-dependency
pkgname=python-${_pkg}
pkgver=0.6.0
pkgrel=3
pkgdesc="Manage dependencies of tests"
arch=(any)
url="https://github.com/RKrahl/pytest-dependency"
license=(Apache)
depends=(python-pytest)
makedepends=(python-setuptools)
source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
sha256sums=('934b0e6a39d95995062c193f7eaeed8a8ffa06ff1bcef4b62b0dc74a708bacc1')
build() {
cd ${_pkg}-${pkgver}
python setup.py build
}
check() {
cd ${_pkg}-${pkgver}
PYTHONPATH="${PWD}/build/lib" pytest -v --color=yes
}
package() {
cd ${_pkg}-${pkgver}
python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
}