python39Packages.ansible-core: add importlib-resources to python 3.9 build

This commit is contained in:
Theodore Ni 2023-06-30 16:19:49 -07:00
parent 9365015778
commit d453878991
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -1,9 +1,12 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pythonRelaxDepsHook
, installShellFiles
, ansible
, cryptography
, importlib-resources
, jinja2
, junit-xml
, lxml
@ -41,6 +44,8 @@ buildPythonPackage rec {
nativeBuildInputs = [
installShellFiles
] ++ lib.optionals (pythonOlder "3.10") [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
@ -64,7 +69,15 @@ buildPythonPackage rec {
requests
scp
xmltodict
] ++ lib.optional windowsSupport pywinrm;
] ++ lib.optionals windowsSupport [
pywinrm
] ++ lib.optionals (pythonOlder "3.10") [
importlib-resources
];
pythonRelaxDeps = lib.optionals (pythonOlder "3.10") [
"importlib-resources"
];
postInstall = ''
installManPage docs/man/man1/*.1