[arch-commits] Commit in python-apispec-webframeworks/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 26 20:23:12 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:23:12
  Author: felixonmars
Revision: 520495

archrelease: copy trunk to community-staging-any

Added:
  python-apispec-webframeworks/repos/community-staging-any/
  python-apispec-webframeworks/repos/community-staging-any/PKGBUILD
    (from rev 520493, python-apispec-webframeworks/trunk/PKGBUILD)

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

Copied: python-apispec-webframeworks/repos/community-staging-any/PKGBUILD (from rev 520493, python-apispec-webframeworks/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:23:12 UTC (rev 520495)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-apispec-webframeworks
+pkgver=0.4.0
+pkgrel=3
+pkgdesc="Web framework plugins for apispec"
+url="https://github.com/marshmallow-code/apispec-webframeworks"
+license=('MIT')
+arch=('any')
+depends=('python-apispec' 'python-yaml')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-bottle' 'python-flask' 'python-tornado')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/marshmallow-code/apispec-webframeworks/archive/$pkgver.tar.gz")
+sha512sums=('f831c4e8d494a67a2ce0f88624fa7770bb7e3731d57158f9d622c07f1f87b7c0f55375cd0bffd36d3a8aa204925ae8dbf478a749376320ce8aec324f86c23306')
+
+build() {
+  cd apispec-webframeworks-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd apispec-webframeworks-$pkgver
+  python setup.py pytest || warning "https://github.com/marshmallow-code/apispec-webframeworks/issues/45"
+}
+
+package() {
+  cd apispec-webframeworks-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list