diff --git a/pkgs/development/python-modules/importlib-resources/default.nix b/pkgs/development/python-modules/importlib-resources/default.nix index ca361f5b1191..fda4fb00bfaf 100644 --- a/pkgs/development/python-modules/importlib-resources/default.nix +++ b/pkgs/development/python-modules/importlib-resources/default.nix @@ -11,25 +11,34 @@ buildPythonPackage rec { pname = "importlib-resources"; - version = "5.2.2"; + version = "5.4.0"; src = fetchPypi { pname = "importlib_resources"; inherit version; - sha256 = "sha256-pliCpND+X79wInNFa6LOdP5EiSwl5C4FespSa3AqbUs="; + sha256 = "sha256-11bi+F3U3iuom+CyHboqO77C6HGkKjoWcZJYoR+HUGs="; }; - nativeBuildInputs = [ setuptools-scm ]; + nativeBuildInputs = [ + setuptools-scm + ]; + propagatedBuildInputs = [ importlib-metadata - ] ++ lib.optional (pythonOlder "3.4") singledispatch - ++ lib.optional (pythonOlder "3.5") typing - ; + ] ++ lib.optional (pythonOlder "3.4") [ + singledispatch + ] ++ lib.optional (pythonOlder "3.5") [ + typing + ]; checkPhase = '' ${python.interpreter} -m unittest discover ''; + pythonImportsCheck = [ + "importlib_resources" + ]; + meta = with lib; { description = "Read resources from Python packages"; homepage = "https://importlib-resources.readthedocs.io/";