Merge pull request #245602 from hulr/aws-sam-translator

python3Packages.aws-sam-translator: 1.60.1 -> 1.73.0
This commit is contained in:
Mario Rodas 2023-08-24 02:29:24 -05:00 committed by GitHub
commit 3cf83b955e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,9 +2,7 @@
, boto3
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, jsonschema
, mock
, parameterized
, pydantic
, pytest-env
@ -18,7 +16,7 @@
buildPythonPackage rec {
pname = "aws-sam-translator";
version = "1.60.1";
version = "1.73.0";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -27,7 +25,7 @@ buildPythonPackage rec {
owner = "aws";
repo = "serverless-application-model";
rev = "refs/tags/v${version}";
hash = "sha256-exVB1STX8OsFnQ0pzSuR3O/FrvG2GR5MdZa8tZ9IJvI=";
hash = "sha256-rj+q/06gIvPYTJP/EH9ZrP0Sp4J3K1aCRyNkgpphWP4=";
};
propagatedBuildInputs = [
@ -37,17 +35,8 @@ buildPythonPackage rec {
typing-extensions
];
patches = [
(fetchpatch {
# relax typing-extenions dependency
url = "https://github.com/aws/serverless-application-model/commit/d1c26f7ad9510a238ba570d511d5807a81379d0a.patch";
hash = "sha256-nh6MtRgi0RrC8xLkLbU6/Ec0kYtxIG/fgjn/KLiAM0E=";
})
];
postPatch = ''
substituteInPlace requirements/base.txt \
--replace "jsonschema~=3.2" "jsonschema>=3.2"
preCheck = ''
sed -i '2ienv =\n\tAWS_DEFAULT_REGION=us-east-1' pytest.ini
substituteInPlace pytest.ini \
--replace " --cov samtranslator --cov-report term-missing --cov-fail-under 95" ""
'';
@ -61,15 +50,13 @@ buildPythonPackage rec {
pyyaml
];
doCheck = false; # tests fail in weird ways
pythonImportsCheck = [
"samtranslator"
];
meta = with lib; {
description = "Python library to transform SAM templates into AWS CloudFormation templates";
homepage = "https://github.com/awslabs/serverless-application-model";
homepage = "https://github.com/aws/serverless-application-model";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};