Date: Friday, October 7, 2022 @ 16:39:51
  Author: yan12125
Revision: 1323810

upgpkg: python-aws-sam-translator 1.52.0-1; fix tests; update deps

* Update check() and checkdepends following
  https://github.com/aws/serverless-application-model/pull/2513
* Add transitive deps detected by patched namcap

Modified:
  python-aws-sam-translator/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-07 16:38:47 UTC (rev 1323809)
+++ PKGBUILD    2022-10-07 16:39:51 UTC (rev 1323810)
@@ -2,21 +2,21 @@
 
 pkgname=python-aws-sam-translator
 # https://github.com/aws/serverless-application-model/releases
-pkgver=1.51.0
+pkgver=1.52.0
 pkgrel=1
 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)
+depends=(python python-botocore python-boto3 python-jsonschema)
 makedepends=(python-setuptools)
 # python-yaml is needed by samtranslator.yaml_helper, while the latter is used 
in tests only
-checkdepends=(python-pytest python-pytest-env python-yaml python-parameterized)
+checkdepends=(python-pytest python-yaml python-parameterized)
 # Upstream intentionally exclude tests from sdist
 # 
https://github.com/aws/serverless-application-model/pull/381#issuecomment-382143094
 
source=("https://github.com/aws/serverless-application-model/archive/v$pkgver/$pkgname-$pkgver.tar.gz";
         
"$pkgname-jsonschema-4.patch"::"https://github.com/aws/serverless-application-model/pull/2441.patch";)
-sha256sums=('34f668dfea6aae4856fb3f845ca6093667226f20811fecefc29d316346f2dbec'
+sha256sums=('9a127e580365de4296d8cf8a3cf0ebc7e52352b480d265d173551601071af3f1'
             '7bba093258d9d7768112463f9a6fbe63bb78e060081d9585637582caf0da1d20')
 
 prepare() {
@@ -33,7 +33,8 @@
 
 check() {
   cd serverless-application-model-$pkgver
-  pytest tests
+  # See 
https://github.com/aws/serverless-application-model/blob/v1.52.0/Makefile#L9
+  AWS_DEFAULT_REGION=us-east-1 pytest tests
 }
 
 package() {

Reply via email to