27 windowsSupport ? false,
32 buildPythonPackage rec {
33 pname = "ansible-core";
38 pname = "ansible_core";
40 hash = "sha256-PlOXC3zr/irbObcRweL4u/y+2sgo2lHcA1ehkHBjjpU=";
43 # ansible_connection is already wrapped, so don't pass it through
44 # the python interpreter again, as it would break execution of
47 substituteInPlace lib/ansible/executor/task_executor.py \
48 --replace "[python," "["
50 patchShebangs --build packaging/cli-doc/build.py
58 build-system = [ setuptools ];
62 # depend on ansible instead of the other way around
64 # from requirements.txt
71 # optional dependencies
84 ++ lib.optionals windowsSupport [ pywinrm ]
85 ++ lib.optionals (pythonOlder "3.10") [ importlib-resources ];
87 pythonRelaxDeps = lib.optionals (pythonOlder "3.10") [ "importlib-resources" ];
90 export HOME="$(mktemp -d)"
91 packaging/cli-doc/build.py man --output-dir=man
95 # internal import errors, missing dependencies
99 changelog = "https://github.com/ansible/ansible/blob/v${version}/changelogs/CHANGELOG-v${lib.versions.majorMinor version}.rst";
100 description = "Radically simple IT automation";
101 homepage = "https://www.ansible.com";
102 license = licenses.gpl3Plus;