diff --git a/pkgs/development/python-modules/aws-sam-translator/default.nix b/pkgs/development/python-modules/aws-sam-translator/default.nix index 3494ce92dddc..227c0f608df8 100644 --- a/pkgs/development/python-modules/aws-sam-translator/default.nix +++ b/pkgs/development/python-modules/aws-sam-translator/default.nix @@ -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; [ ]; };