Merge pull request #143909 from fabaff/bump-importlib-resources
This commit is contained in:
commit
072b37ff36
1 changed files with 15 additions and 6 deletions
|
@ -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/";
|
||||
|
|
Loading…
Reference in a new issue