nixpkgs/pkgs/development/python-modules/aws-sam-translator/default.nix
2019-11-27 19:24:47 -08:00

36 lines
750 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, boto3
, enum34
, jsonschema
, six
}:
buildPythonPackage rec {
pname = "aws-sam-translator";
version = "1.16.0";
src = fetchPypi {
inherit pname version;
sha256 = "0xvfbhiqdqy4qs4z8v2p7z3l01w5af948bmf400s5jsq2hnxl6nv";
};
# Tests are not included in the PyPI package
doCheck = false;
propagatedBuildInputs = [
boto3
jsonschema
six
] ++ lib.optionals (pythonOlder "3.4") [ enum34 ];
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 ];
};
}