git.iko.soy/typeable/nixpkgs
on master help sign in
cfn-lint: fixed importlib_resources version bounds

Also, added import checks to have a minimal test for the package

commit037b8aefefc3439acaa29734c5a6360c1e8d2cbf authorfreezeboy <freezeboy@users.noreply.github.com> dateFri 11 Sep 2020, 13:38 (6 years ago) parent8e29e17
1 file changed+19
pkgs/development/python-modules/cfn-lint/default.nix+19
pkgs/development/python-modules/cfn-lint/default.nix+19
@@ -25,6 +25,10 @@ buildPythonPackage rec {
2525 sha256 = "42023d89520e3a29891ec2eb4c326eef9d1f7516fe9abee8b6c97ce064187b45";
2626 };
2727
28+ postPatch = ''
29+ substituteInPlace setup.py --replace 'importlib_resources~=1.4;python_version<"3.7" and python_version!="3.4"' 'importlib_resources;python_version<"3.7"'
30+ '';
31+
2832 propagatedBuildInputs = [
2933 pyyaml
3034 six
@@ -40,6 +44,21 @@ buildPythonPackage rec {
4044
4145 # No tests included in archive
4246 doCheck = false;
47+ pythonImportsCheck = [
48+ "cfnlint"
49+ "cfnlint.conditions"
50+ "cfnlint.core"
51+ "cfnlint.decode.node"
52+ "cfnlint.decode.cfn_yaml"
53+ "cfnlint.decode.cfn_json"
54+ "cfnlint.decorators.refactored"
55+ "cfnlint.graph"
56+ "cfnlint.helpers"
57+ "cfnlint.rules"
58+ "cfnlint.runner"
59+ "cfnlint.template"
60+ "cfnlint.transform"
61+ ];
4362
4463 meta = with lib; {
4564 description = "Checks cloudformation for practices and behaviour that could potentially be improved";