[arch-commits] Commit in python-threat9-test-bed/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 4 06:13:10 UTC 2019


    Date: Monday, November 4, 2019 @ 06:13:10
  Author: felixonmars
Revision: 523331

archrelease: copy trunk to community-staging-any

Added:
  python-threat9-test-bed/repos/community-staging-any/
  python-threat9-test-bed/repos/community-staging-any/PKGBUILD
    (from rev 523329, python-threat9-test-bed/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: python-threat9-test-bed/repos/community-staging-any/PKGBUILD (from rev 523329, python-threat9-test-bed/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 06:13:10 UTC (rev 523331)
@@ -0,0 +1,40 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-threat9-test-bed
+_pyname=threat9-test-bed
+_gitcommit=1ed61b34d0b138711e3f8267259cdb29787fe349
+pkgver=0.6.0+2+g1ed61b3
+pkgrel=2
+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() {
+  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:



More information about the arch-commits mailing list