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.35.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "5cf7faab3566843f3b44ef1a42a9c106ffb50809da4002faab818076dcc7bff8";
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 = with lib; {
30 homepage = "https://github.com/awslabs/serverless-application-model";
31 description = "Python library to transform SAM templates into AWS CloudFormation templates";
32 license = licenses.asl20;
33 };
34}