2018-06-07 07:05:22 -07:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-05-01 19:51:47 -07:00
|
|
|
, pythonOlder
|
2018-06-07 07:05:22 -07:00
|
|
|
, boto3
|
|
|
|
, enum34
|
|
|
|
, jsonschema
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-sam-translator";
|
2021-03-24 02:28:09 -07:00
|
|
|
version = "1.35.0";
|
2018-06-07 07:05:22 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 02:28:09 -07:00
|
|
|
sha256 = "5cf7faab3566843f3b44ef1a42a9c106ffb50809da4002faab818076dcc7bff8";
|
2018-06-07 07:05:22 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests are not included in the PyPI package
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto3
|
|
|
|
jsonschema
|
|
|
|
six
|
2019-05-01 19:51:47 -07:00
|
|
|
] ++ lib.optionals (pythonOlder "3.4") [ enum34 ];
|
2018-06-07 07:05:22 -07:00
|
|
|
|
2020-11-24 08:21:22 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/awslabs/serverless-application-model";
|
2018-06-07 07:05:22 -07:00
|
|
|
description = "Python library to transform SAM templates into AWS CloudFormation templates";
|
2020-11-24 08:21:22 -08:00
|
|
|
license = licenses.asl20;
|
2018-06-07 07:05:22 -07:00
|
|
|
};
|
|
|
|
}
|