[arch-commits] Commit in python-aws-sam-translator/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 19:24:28 UTC 2020


    Date: Monday, November 9, 2020 @ 19:24:28
  Author: felixonmars
Revision: 748067

archrelease: copy trunk to community-staging-any

Added:
  python-aws-sam-translator/repos/community-staging-any/
  python-aws-sam-translator/repos/community-staging-any/PKGBUILD
    (from rev 748066, python-aws-sam-translator/trunk/PKGBUILD)

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

Copied: python-aws-sam-translator/repos/community-staging-any/PKGBUILD (from rev 748066, python-aws-sam-translator/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 19:24:28 UTC (rev 748067)
@@ -0,0 +1,35 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aws-sam-translator
+pkgver=1.29.0
+pkgrel=2
+pkgdesc='AWS Serverless Application Model (AWS SAM) prescribes rules for expressing Serverless applications on AWS'
+arch=(any)
+url='https://github.com/aws/serverless-application-model'
+license=(Apache)
+depends=(python python-boto3 python-jsonschema python-six)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-yaml python-mock python-parameterized)
+source=("https://github.com/aws/serverless-application-model/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('d9f11e61165580e892fd7ea184c4046ef9bd6a97f21e70472a0c44d0bd50358e')
+
+prepare() {
+  cd serverless-application-model-$pkgver
+  # skip pytest-coverage
+  sed -i '/addopts/d' pytest.ini
+}
+
+build() {
+  cd serverless-application-model-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd serverless-application-model-$pkgver
+  pytest tests
+}
+
+package() {
+  cd serverless-application-model-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list