Files
nixpkgs/pkgs/development/python-modules/cfn-flip/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
pyyaml,
six,
}:
buildPythonPackage rec {
pname = "cfn-flip";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-cfn-template-flip";
rev = version;
hash = "sha256-lfhTR3+D1FvblhQGF83AB8+I8WDPBTmo+q22ksgDgt4=";
};
propagatedBuildInputs = [
click
pyyaml
six
];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
disabledTests = [
# TypeError: load() missing 1 required positional argument: 'Loader'
"test_flip_to_yaml_with_longhand_functions"
"test_yaml_no_ordered_dict"
];
pythonImportsCheck = [ "cfn_flip" ];
meta = {
description = "Tool for converting AWS CloudFormation templates between JSON and YAML formats";
mainProgram = "cfn-flip";
homepage = "https://github.com/awslabs/aws-cfn-template-flip";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
kamadorueda
psyanticy
];
};
}