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