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