diff options
author | Jack Kelly <jack@jackkelly.name> | 2020-12-02 16:16:22 +1000 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-01-01 21:12:21 +0100 |
commit | 87453c270d80b7413276fbc1047cc752eb1392ef (patch) | |
tree | 45f43c874857230af2c6adebbfd7cf746524fa7f /pkgs/development/python-modules/cfn-lint | |
parent | 60c6607dc87f9f1c34dc028b7d7c8bf7006067f7 (diff) |
pythonPackages.cfn-lint: 0.35.1 -> 0.42.0
Diffstat (limited to 'pkgs/development/python-modules/cfn-lint')
-rw-r--r-- | pkgs/development/python-modules/cfn-lint/default.nix | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/cfn-lint/default.nix b/pkgs/development/python-modules/cfn-lint/default.nix index b79bf76131778..0a27f8222c0fd 100644 --- a/pkgs/development/python-modules/cfn-lint/default.nix +++ b/pkgs/development/python-modules/cfn-lint/default.nix @@ -14,25 +14,25 @@ , requests , setuptools , six -# Test inputs -, pytestCheckHook , mock , pydot +, pytestCheckHook }: buildPythonPackage rec { pname = "cfn-lint"; - version = "0.35.1"; + version = "0.42.0"; src = fetchFromGitHub { owner = "aws-cloudformation"; - repo = "cfn-python-lint"; + repo = "cfn-python-lint"; rev = "v${version}"; - sha256 = "1ajb0412hw9fg9m4b3xbpfbp8cixmnpjxrkaks6k749xinzsv7qk"; + sha256 = "0cqpq7pxpslpd7am6mp6nmwhsb2p2a5lq3hjjxi8imv3wv7zql98"; }; postPatch = '' - substituteInPlace setup.py --replace 'importlib_resources~=1.4;python_version<"3.7" and python_version!="3.4"' 'importlib_resources;python_version<"3.7"' + substituteInPlace setup.py \ + --replace 'importlib_resources~=1.4;python_version<"3.7" and python_version!="3.4"' 'importlib_resources;python_version<"3.7"' ''; propagatedBuildInputs = [ @@ -48,6 +48,21 @@ buildPythonPackage rec { six ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ]; + checkInputs = [ + mock + pydot + pytestCheckHook + ]; + + preCheck = '' + export PATH=$out/bin:$PATH + ''; + + disabledTests = [ + # requires git directory + "test_update_docs" + ]; + pythonImportsCheck = [ "cfnlint" "cfnlint.conditions" @@ -64,9 +79,6 @@ buildPythonPackage rec { "cfnlint.transform" ]; - checkInputs = [ pytestCheckHook mock pydot ]; - preCheck = "export PATH=$out/bin:$PATH"; - meta = with lib; { description = "Checks cloudformation for practices and behaviour that could potentially be improved"; homepage = "https://github.com/aws-cloudformation/cfn-python-lint"; |