Unverified Commit d4538789 authored by Theodore Ni's avatar Theodore Ni
Browse files

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

parent 93650157
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
{ 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