python3Packages.cfn-flip: 1.2.2 -> 1.3.0

This commit is contained in:
Fabian Affolter 2022-01-24 21:22:24 +01:00
parent 1c7a90375c
commit 599d9d112c

View file

@ -1,25 +1,25 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
# pythonPackages
{ lib
, buildPythonPackage
, click
, pytest
, pytest-cov
, pytest-runner
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pyyaml
, six
}:
buildPythonPackage rec {
pname = "cfn-flip";
version = "1.2.2";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-cfn-template-flip";
rev = version;
sha256 = "05fk725a1i3zl3idik2hxl3w6k1ln0j33j3jdq1gvy1sfyc79ifm";
hash = "sha256-1cV0mHc6+P0CbnLIMSSwNEzDB+1QzNjioH/EoIo40xU=";
};
propagatedBuildInputs = [
@ -29,27 +29,27 @@ buildPythonPackage rec {
];
checkInputs = [
pytest
pytest-cov
pytest-runner
pytestCheckHook
];
checkPhase = ''
py.test \
--cov=cfn_clean \
--cov=cfn_flip \
--cov=cfn_tools \
--cov-report term-missing \
--cov-report html
postPatch = ''
sed -i "/--cov/d" tox.ini
'';
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";
homepage = "https://github.com/awslabs/aws-cfn-template-flip";
license = licenses.asl20;
maintainers = with maintainers; [
kamadorueda
psyanticy
];
maintainers = with maintainers; [ kamadorueda psyanticy ];
};
}