python3Packages.importlib-resources: 5.2.2 -> 5.4.0

This commit is contained in:
Fabian Affolter 2021-10-31 00:16:55 +02:00 committed by Sandro Jäckel
parent 5e39406e00
commit dedb014786
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -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/";