{ lib , buildPythonPackage , fetchPypi , pythonOlder , boto3 , enum34 , jsonschema , six }: buildPythonPackage rec { pname = "aws-sam-translator"; version = "1.19.0"; src = fetchPypi { inherit pname version; sha256 = "28efbfa3df5382bf611366eeadfe2d49d8a82f2c2b6e537bce680b9eb0702ec5"; }; # Tests are not included in the PyPI package doCheck = false; propagatedBuildInputs = [ boto3 jsonschema six ] ++ lib.optionals (pythonOlder "3.4") [ enum34 ]; meta = { homepage = https://github.com/awslabs/serverless-application-model; description = "Python library to transform SAM templates into AWS CloudFormation templates"; license = lib.licenses.asl20; maintainers = [ lib.maintainers.andreabedini ]; }; }