[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/09: gnu: python-aws-sam-translator: Update to 1.94.0.
From: |
guix-commits |
Subject: |
07/09: gnu: python-aws-sam-translator: Update to 1.94.0. |
Date: |
Mon, 16 Dec 2024 11:48:26 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit 82225664fac226647ad531548bfd597f515b29e8
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Mon Dec 16 16:06:18 2024 +0000
gnu: python-aws-sam-translator: Update to 1.94.0.
* gnu/packages/python-web.scm (python-aws-sam-translator): Update to
1.94.0. Fix build
[source]: Use git checkout containing tests.
[build-system]: Swap to pyproject-build-system.
[arguments]<test-flags>: Run test in parallel, skip some failing tests.
<phases>: Remove 'loosen-requirements, add 'fix-pytest-config, and
'pre-check.
[propagated-inputs]: Remove python-six; add python-pydantic and
python-typing-extensions.
[native-inputs]: Add python-pytest, python-setuptools,
python-pytest-xdist, python-parameterized, python-pyyaml, and
python-wheel.
Change-Id: I16181f714cfc9bcd97ca034631a204969c323542
---
gnu/packages/python-web.scm | 67 +++++++++++++++++++++++++++++++--------------
1 file changed, 47 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b7d57b96a7..3ebcb6d54a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -943,28 +943,55 @@ routes using HTTP Digest Authentication.")
(define-public python-aws-sam-translator
(package
(name "python-aws-sam-translator")
- (version "1.51.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "aws-sam-translator" version))
- (sha256
- (base32
- "1ywzchc3nk13xh593j7b14qp3y0fdx7cfbdhnm34p39av66xffac"))))
- (build-system python-build-system)
+ (version "1.94.0")
+ (source
+ (origin
+ (method git-fetch) ; no tests in PyPI release
+ (uri (git-reference
+ (url "https://github.com/aws/serverless-application-model")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0rrmp2a2lr1bb909x34j7dqkdynx48hfwxg9m488s0mws68f78m3"))))
+ (build-system pyproject-build-system)
(arguments
- `(;; XXX: Tests are not distributed with the PyPI archive, and would
- ;; introduce a circular dependency on python-cfn-lint.
- #:tests? #f
- #:phases (modify-phases %standard-phases
- (add-after 'unpack 'loosen-requirements
- (lambda _
- ;; The package needlessly specifies exact versions
- ;; of dependencies, when it works fine with others.
- (substitute* "requirements/base.txt"
- (("(.*)(~=[0-9\\.]+)" all package version)
- package)))))))
+ (list
+ #:test-flags
+ #~(list "--numprocesses" (number->string (parallel-job-count))
+ "--ignore=tests/bin/test_public_interface.py"
+ "-k"
+ (string-join
+ ;; AttributeError: module 'pydantic.v1' has no attribute
+ ;; 'error_wrappers'
+ (list "not test_connector_with_empty_properties"
+ "test_connector_with_invalid_permission"
+ "test_connector_with_invalid_permission_type"
+ "test_connector_without_source"
+ "test_transform_invalid_document")
+ " and not ")
+ "tests")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-pytest-config
+ (lambda _
+ ;; Drop test coverage requirements.
+ (substitute* "pytest.ini"
+ ((".*addopts.*") ""))))
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "AWS_DEFAULT_REGION" "eu-west-3"))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-pytest-xdist
+ python-parameterized
+ python-pyyaml
+ python-wheel))
(propagated-inputs
- (list python-boto3 python-jsonschema python-six))
+ (list python-boto3
+ python-jsonschema
+ python-pydantic
+ python-typing-extensions))
(home-page "https://github.com/aws/serverless-application-model")
(synopsis "Transform AWS SAM templates into AWS CloudFormation templates")
(description
- branch master updated (097de97982 -> 6774c9e75a), guix-commits, 2024/12/16
- 03/09: gnu: python-asdf-coordinates-schemas: Fix build., guix-commits, 2024/12/16
- 05/09: gnu: python-ephem: Fix build., guix-commits, 2024/12/16
- 09/09: gnu: python-flask-sqlalchemy: Update to 3.1.1., guix-commits, 2024/12/16
- 06/09: gnu: python-cattrs: Skip some tests., guix-commits, 2024/12/16
- 04/09: gnu: python-asdf-wcs-schemas: Fix build., guix-commits, 2024/12/16
- 02/09: gnu: python-asdf-compression: Fix build., guix-commits, 2024/12/16
- 08/09: gnu: python-cfn-lint: Update to 1.22.1., guix-commits, 2024/12/16
- 07/09: gnu: python-aws-sam-translator: Update to 1.94.0.,
guix-commits <=
- 01/09: gnu: python-asdf: Fix build., guix-commits, 2024/12/16