diff --git a/pkgs/development/python-modules/cfn-lint/default.nix b/pkgs/development/python-modules/cfn-lint/default.nix index d470dc7dea19..915ff85db11c 100644 --- a/pkgs/development/python-modules/cfn-lint/default.nix +++ b/pkgs/development/python-modules/cfn-lint/default.nix @@ -1,10 +1,13 @@ { lib , buildPythonPackage , fetchPypi +, pythonOlder , pyyaml , six , requests , aws-sam-translator +, importlib-metadata +, importlib-resources , jsonpatch , jsonschema , pathlib2 @@ -29,7 +32,7 @@ buildPythonPackage rec { jsonschema pathlib2 setuptools - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ]; # No tests included in archive doCheck = false;