This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
57 lines
1.1 KiB
Nix
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 = with lib; {
|
|
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 = licenses.asl20;
|
|
maintainers = with maintainers; [
|
|
kamadorueda
|
|
psyanticy
|
|
];
|
|
};
|
|
}
|