diff options
author | Marius Bakke <mbakke@fastmail.com> | 2019-08-19 15:04:43 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2020-11-21 01:21:32 +0100 |
commit | bfed77abea77ab5b1738f32155822b7f09bcfd2c (patch) | |
tree | f3516501b684d8d1f69674ac489b6e8fd13f866a /gnu/packages/python-web.scm | |
parent | fb871c58999119794a80efbd4ac09336498aacaf (diff) | |
download | guix-bfed77abea77ab5b1738f32155822b7f09bcfd2c.tar.gz |
gnu: Add python-aws-sam-translator.
* gnu/packages/python-web.scm (python-aws-sam-translator): New public variable.
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r-- | gnu/packages/python-web.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 2ba69ba53d..1afd614ce2 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -277,6 +277,41 @@ WSGI. This package includes libraries for implementing ASGI servers.") ;; looks like the user can choose a license. (license (list license:gpl3+ license:lgpl3+ license:expat)))) +(define-public python-aws-sam-translator + (package + (name "python-aws-sam-translator") + (version "1.30.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "aws-sam-translator" version)) + (sha256 + (base32 + "0d9ppd94x2kw404m49ajswmmxgdngbs4p5ajyrdvnlivfzqbv7dx")))) + (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))))) + (propagated-inputs + `(("python-boto3" ,python-boto3) + ("python-jsonschema" ,python-jsonschema) + ("python-six" ,python-six))) + (home-page "https://github.com/awslabs/serverless-application-model") + (synopsis "Transform AWS SAM templates into AWS CloudFormation templates") + (description + "AWS SAM Translator is a library that transform @dfn{Serverless Application +Model} (SAM) templates into AWS CloudFormation templates.") + (license license:asl2.0))) + (define-public python-aws-xray-sdk (package (name "python-aws-xray-sdk") |