mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
python39Packages.ansible-core: add importlib-resources to python 3.9 build
This commit is contained in:
parent
9365015778
commit
d453878991
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user