1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, boto3
6, enum34
7, jsonschema
8, six
9}:
10
11buildPythonPackage rec {
12 pname = "aws-sam-translator";
13 version = "1.11.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "db872c43bdfbbae9fc8c9201e6a7aeb9a661cda116a94708ab0577b46a38b962";
18 };
19
20 # Tests are not included in the PyPI package
21 doCheck = false;
22
23 propagatedBuildInputs = [
24 boto3
25 jsonschema
26 six
27 ] ++ lib.optionals (pythonOlder "3.4") [ enum34 ];
28
29 meta = {
30 homepage = https://github.com/awslabs/serverless-application-model;
31 description = "Python library to transform SAM templates into AWS CloudFormation templates";
32 license = lib.licenses.asl20;
33 maintainers = [ lib.maintainers.andreabedini ];
34 };
35}