Date: Friday, November 23, 2018 @ 00:42:11 Author: anthraxx Revision: 409460
addpkg: python-threat9-test-bed 0.6.0-1 Added: python-threat9-test-bed/ python-threat9-test-bed/repos/ python-threat9-test-bed/trunk/ python-threat9-test-bed/trunk/PKGBUILD ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Added: python-threat9-test-bed/trunk/PKGBUILD =================================================================== --- python-threat9-test-bed/trunk/PKGBUILD (rev 0) +++ python-threat9-test-bed/trunk/PKGBUILD 2018-11-23 00:42:11 UTC (rev 409460) @@ -0,0 +1,41 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> + +pkgname=python-threat9-test-bed +_pyname=threat9-test-bed +_gitcommit=142f59b74023538626910a3a3a17b8802e0645bf +pkgver=0.6.0 +pkgrel=1 +pkgdesc='Threat9 Test Bed' +url='https://github.com/threat9/threat9-test-bed' +arch=('any') +license=('custom') +depends=('python' 'python-setuptools' 'python-click' 'python-faker' 'python-flask' + 'gunicorn' 'python-pyopenssl' 'python-requests') +makedepends=('git' 'python-setuptools-scm') +checkdepends=('python-pytest') +source=(${pkgname}::"git+https://github.com/threat9/threat9-test-bed#commit=${_gitcommit}") +sha512sums=('SKIP') + +pkgver() { + cd ${pkgname} + git describe --always --tags | sed 's/^v//;s/-/./g' +} + +build() { + cd ${pkgname} + python setup.py build +} + +check() { + cd ${pkgname} + python -m pytest +} + +package() { + depends=('python') + cd ${pkgname} + python setup.py install --root="${pkgdir}" -O1 --skip-build + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" +} + +# vim: ts=2 sw=2 et: