2020-01-15 20:49:32 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
|
|
|
|
# pythonPackages
|
|
|
|
, click
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytestrunner
|
|
|
|
, pyyaml
|
|
|
|
, six
|
|
|
|
}:
|
2019-02-07 15:08:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cfn-flip";
|
2020-01-15 20:49:32 +00:00
|
|
|
version = "1.2.2";
|
2019-02-07 15:08:48 +00:00
|
|
|
|
2020-01-15 20:49:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "aws-cfn-template-flip";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "05fk725a1i3zl3idik2hxl3w6k1ln0j33j3jdq1gvy1sfyc79ifm";
|
2019-02-07 15:08:48 +00:00
|
|
|
};
|
|
|
|
|
2020-01-15 20:49:32 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
pyyaml
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytestcov
|
|
|
|
pytestrunner
|
|
|
|
];
|
2019-02-07 15:08:48 +00:00
|
|
|
|
2020-01-15 20:49:32 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test \
|
|
|
|
--cov=cfn_clean \
|
|
|
|
--cov=cfn_flip \
|
|
|
|
--cov=cfn_tools \
|
|
|
|
--cov-report term-missing \
|
|
|
|
--cov-report html
|
|
|
|
'';
|
2019-02-07 15:08:48 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for converting AWS CloudFormation templates between JSON and YAML formats";
|
2020-01-15 20:49:32 +00:00
|
|
|
homepage = "https://github.com/awslabs/aws-cfn-template-flip";
|
2019-02-07 15:08:48 +00:00
|
|
|
license = licenses.asl20;
|
2020-01-15 20:49:32 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
psyanticy
|
|
|
|
];
|
2019-02-07 15:08:48 +00:00
|
|
|
};
|
|
|
|
}
|