mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 17:19:58 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
click,
|
|
fetchFromGitHub,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
setuptools,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "cfn-flip";
|
|
version = "1.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "awslabs";
|
|
repo = "aws-cfn-template-flip";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-lfhTR3+D1FvblhQGF83AB8+I8WDPBTmo+q22ksgDgt4=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
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; [ psyanticy ];
|
|
};
|
|
})
|