26 , windowsSupport ? false, pywinrm
30 buildPythonPackage rec {
31 pname = "ansible-core";
35 inherit pname version;
36 hash = "sha256-zdKbDsPyDDVlc1Wi9qnB0M8RMdqZzJpKNAGAGwqzbW0=";
39 # ansible_connection is already wrapped, so don't pass it through
40 # the python interpreter again, as it would break execution of
43 substituteInPlace lib/ansible/executor/task_executor.py \
44 --replace "[python," "["
46 patchShebangs --build packaging/cli-doc/build.py
52 ] ++ lib.optionals (pythonOlder "3.10") [
56 propagatedBuildInputs = [
57 # depend on ansible instead of the other way around
59 # from requirements.txt
65 resolvelib # This library is a PITA, since ansible requires a very old version of it
66 # optional dependencies
78 ] ++ lib.optionals windowsSupport [
80 ] ++ lib.optionals (pythonOlder "3.10") [
84 pythonRelaxDeps = lib.optionals (pythonOlder "3.10") [
89 export HOME="$(mktemp -d)"
90 packaging/cli-doc/build.py man --output-dir=man
94 # internal import errors, missing dependencies
98 changelog = "https://github.com/ansible/ansible/blob/v${version}/changelogs/CHANGELOG-v${lib.versions.majorMinor version}.rst";
99 description = "Radically simple IT automation";
100 homepage = "https://www.ansible.com";
101 license = licenses.gpl3Plus;
102 maintainers = with maintainers; [ ];