[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50018] [PATCH 05/19] gnu: python-aws-sam-translator: Change source
From: |
Vinicius Monego |
Subject: |
[bug#50018] [PATCH 05/19] gnu: python-aws-sam-translator: Change source for tests. |
Date: |
Wed, 11 Aug 2021 23:44:57 +0000 |
* gnu/packages/python-web.scm (python-aws-sam-translator)[source]: Fetch from
GitHub. Make some cosmetic changes.
[arguments]: Change explanation on why tests are disabled. Make some cosmetic
changes.
[native-inputs]: Add python-black, python-click, python-coverage,
python-dateparser, python-docopt, python-flake8, python-mock,
python-parameterized, python-pathlib2, python-pylint, python-pytest,
python-pytest-cov, python-pyyaml, python-requests.
---
gnu/packages/python-web.scm | 57 +++++++++++++++++++++++++------------
1 file changed, 39 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 787300e1f8..041fb2d7b7 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -364,26 +364,47 @@ WSGI. This package includes libraries for implementing
ASGI servers.")
(package
(name "python-aws-sam-translator")
(version "1.38.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "aws-sam-translator" version))
- (sha256
- (base32
- "1djwlsjpbh13m4biglimrm9lq7hmla0k29giay7k3cjsrylxvjhf"))))
+ (source
+ (origin
+ ;; PyPI tarball does not include tests.
+ (method git-fetch)
+ (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 "0nn9jfqz13kzmxm0r9vy24p8sqxv3mrm5d3lx7ah6rc581q8nv1k"))))
(build-system python-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))
- #t)))))
+ ;; 25 test failures divided in the following two errors:
+ ;; 'botocore.exceptions.NoRegionError: You must specify a region.'
+ ;; AttributeError: 'TestDeploymentPreferenceCollection' object has
+ ;; no attribute 'function_logical_id'.
+ `(#: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)))))))
+ (native-inputs
+ `(("python-black" ,python-black)
+ ("python-click" ,python-click)
+ ("python-coverage" ,python-coverage)
+ ("python-dateparser" ,python-dateparser)
+ ("python-docopt" ,python-docopt)
+ ("python-flake8" ,python-flake8)
+ ("python-mock" ,python-mock)
+ ("python-parameterized" ,python-parameterized)
+ ("python-pathlib2" ,python-pathlib2)
+ ("python-pylint" ,python-pylint)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-requests" ,python-requests)))
(propagated-inputs
`(("python-boto3" ,python-boto3)
("python-jsonschema" ,python-jsonschema)
--
2.30.2
- [bug#50018] [PATCH 00/19] Update Celery to version 5., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 01/19] gnu: Add python-click-repl., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 02/19] gnu: Add python-click-didyoumean., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 04/19] gnu: python-aws-sam-translator: Update to 1.38.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 03/19] gnu: Add python-pytest-subtests., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 05/19] gnu: python-aws-sam-translator: Change source for tests.,
Vinicius Monego <=
- [bug#50018] [PATCH 07/19] gnu: python-cfn-lint: Respect #:tests?., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 06/19] gnu: python-cfn-lint: Update to 0.53.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 08/19] gnu: python-moto: Update to 2.2.2., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 13/19] gnu: python-kombu: Update to 5.1.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 16/19] gnu: python-celery: Enable tests., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 15/19] gnu: python-celery: Update to 5.1.2., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 09/19] gnu: python-moto: Respect #:tests?., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 12/19] gnu: python-amqp: Update to 5.0.6., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 10/19] gnu: python-vine: Update to 5.0.0., Vinicius Monego, 2021/08/11
- [bug#50018] [PATCH 14/19] gnu: Add python-pytest-celery., Vinicius Monego, 2021/08/11