1{
2 lib,
3 buildPythonPackage,
4 click,
5 fetchFromGitHub,
6 pytest-cov-stub,
7 pytestCheckHook,
8 pythonOlder,
9 pyyaml,
10 six,
11}:
12
13buildPythonPackage rec {
14 pname = "cfn-flip";
15 version = "1.3.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "awslabs";
22 repo = "aws-cfn-template-flip";
23 rev = version;
24 hash = "sha256-lfhTR3+D1FvblhQGF83AB8+I8WDPBTmo+q22ksgDgt4=";
25 };
26
27 propagatedBuildInputs = [
28 click
29 pyyaml
30 six
31 ];
32
33 nativeCheckInputs = [
34 pytest-cov-stub
35 pytestCheckHook
36 ];
37
38 disabledTests = [
39 # TypeError: load() missing 1 required positional argument: 'Loader'
40 "test_flip_to_yaml_with_longhand_functions"
41 "test_yaml_no_ordered_dict"
42 ];
43
44 pythonImportsCheck = [ "cfn_flip" ];
45
46 meta = with lib; {
47 description = "Tool for converting AWS CloudFormation templates between JSON and YAML formats";
48 mainProgram = "cfn-flip";
49 homepage = "https://github.com/awslabs/aws-cfn-template-flip";
50 license = licenses.asl20;
51 maintainers = with maintainers; [
52 kamadorueda
53 psyanticy
54 ];
55 };
56}