2018-06-07 15:05:22 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-05-02 03:51:47 +01:00
|
|
|
, pythonOlder
|
2018-06-07 15:05:22 +01:00
|
|
|
, boto3
|
|
|
|
, enum34
|
|
|
|
, jsonschema
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aws-sam-translator";
|
2019-05-02 03:51:47 +01:00
|
|
|
version = "1.11.0";
|
2018-06-07 15:05:22 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-02 03:51:47 +01:00
|
|
|
sha256 = "db872c43bdfbbae9fc8c9201e6a7aeb9a661cda116a94708ab0577b46a38b962";
|
2018-06-07 15:05:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests are not included in the PyPI package
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto3
|
|
|
|
jsonschema
|
|
|
|
six
|
2019-05-02 03:51:47 +01:00
|
|
|
] ++ lib.optionals (pythonOlder "3.4") [ enum34 ];
|
2018-06-07 15:05:22 +01:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|