git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #105658 from endgame/cfn-lint-bump
commit89259458bfb6dc28807ee9d5811bbe6520aa1e53 authorSandro <sandro.jaeckel@gmail.com> dateFri 1 Jan 2021, 21:29 (6 years ago) parent4c5f09d87453c2
1 file changed+21−9
pkgs/development/python-modules/cfn-lint/default.nix+21−9
pkgs/development/python-modules/cfn-lint/default.nix+21−9
@@ -14,25 +14,25 @@
1414, requests
1515, setuptools
1616, six
17−# Test inputs
18−, pytestCheckHook
1917, mock
2018, pydot
19+, pytestCheckHook
2120}:
2221
2322buildPythonPackage rec {
2423 pname = "cfn-lint";
25− version = "0.35.1";
24+ version = "0.42.0";
2625
2726 src = fetchFromGitHub {
2827 owner = "aws-cloudformation";
29− repo = "cfn-python-lint";
28+ repo = "cfn-python-lint";
3029 rev = "v${version}";
31− sha256 = "1ajb0412hw9fg9m4b3xbpfbp8cixmnpjxrkaks6k749xinzsv7qk";
30+ sha256 = "0cqpq7pxpslpd7am6mp6nmwhsb2p2a5lq3hjjxi8imv3wv7zql98";
3231 };
3332
3433 postPatch = ''
35− substituteInPlace setup.py --replace 'importlib_resources~=1.4;python_version<"3.7" and python_version!="3.4"' 'importlib_resources;python_version<"3.7"'
34+ substituteInPlace setup.py \
35+ --replace 'importlib_resources~=1.4;python_version<"3.7" and python_version!="3.4"' 'importlib_resources;python_version<"3.7"'
3636 '';
3737
3838 propagatedBuildInputs = [
@@ -48,6 +48,21 @@ buildPythonPackage rec {
4848 six
4949 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];
5050
51+ checkInputs = [
52+ mock
53+ pydot
54+ pytestCheckHook
55+ ];
56+
57+ preCheck = ''
58+ export PATH=$out/bin:$PATH
59+ '';
60+
61+ disabledTests = [
62+ # requires git directory
63+ "test_update_docs"
64+ ];
65+
5166 pythonImportsCheck = [
5267 "cfnlint"
5368 "cfnlint.conditions"
@@ -64,9 +79,6 @@ buildPythonPackage rec {
6479 "cfnlint.transform"
6580 ];
6681
67− checkInputs = [ pytestCheckHook mock pydot ];
68− preCheck = "export PATH=$out/bin:$PATH";
69−
7082 meta = with lib; {
7183 description = "Checks cloudformation for practices and behaviour that could potentially be improved";
7284 homepage = "https://github.com/aws-cloudformation/cfn-python-lint";