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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 16:52:58 UTC 2020


    Date: Monday, November 9, 2020 @ 16:52:57
  Author: foutrelis
Revision: 747652

archrelease: copy trunk to community-staging-any

Added:
  python-flex/repos/community-staging-any/
  python-flex/repos/community-staging-any/PKGBUILD
    (from rev 747651, python-flex/trunk/PKGBUILD)

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

Copied: python-flex/repos/community-staging-any/PKGBUILD (from rev 747651, python-flex/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:52:57 UTC (rev 747652)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flex
+pkgver=6.14.1
+pkgrel=4
+pkgdesc="Swagger schema validator"
+url="https://github.com/pipermerriam/flex"
+license=('BSD')
+arch=('any')
+depends=('python-six' 'python-yaml' 'python-validate-email' 'python-rfc3987' 'python-requests'
+         'python-strict-rfc3339' 'python-click' 'python-jsonpointer')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-factory-boy' 'python-responses' 'python-pytest-httpbin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pipermerriam/flex/archive/v$pkgver.tar.gz")
+sha512sums=('7164f70db2095041f878e2be95467aefc7c5b0b38b9792bd74127dc0769f24e99dd6d5df48a076bfb819462aa8216fd16313e5ebfa0e881ea3094d38ad409c40')
+
+prepare() {
+  sed -i 's/<2/<3/' flex-$pkgver/setup.py
+}
+
+build() {
+  cd flex-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd flex-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd flex-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list