[skip-ci] python-pytest-expect: add as checkdepends of python-html5lib

This commit is contained in:
Chaoting Liu 2018-10-02 18:26:21 +02:00
parent 6b86f7dc4f
commit 6df8c1a53d

View File

@ -0,0 +1,37 @@
_pkgname=pytest-expect
pkgbase='python-pytest-expect'
pkgname=('python3-pytest-expect' 'python2-pytest-expect')
pkgver=1.1.0
pkgrel=2
pkgdesc="py.test plugin to store test expectations and mark tests based on them"
arch=('any')
url="https://github.com/gsnedders/${_pkgname}"
license=('MIT')
makedepends=('python3-pytest' 'python2-pytest' 'python3-u-msgpack' 'python2-u-msgpack')
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('8392093123dfc9807c28fee251e1d710aaed0d46ee77c7531528fb0a265eb798')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python3 setup.py build
python2 setup.py build
}
package_python3-pytest-expect() {
depends=('python3-pytest' 'python3-u-msgpack')
cd "${srcdir}/${_pkgname}-${pkgver}"
python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_python2-pytest-expect() {
depends+=('python2-pytest' 'python2-u-msgpack')
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}