about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansible/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/ansible/default.nix')
-rw-r--r--pkgs/development/python-modules/ansible/default.nix109
1 files changed, 57 insertions, 52 deletions
diff --git a/pkgs/development/python-modules/ansible/default.nix b/pkgs/development/python-modules/ansible/default.nix
index 321cf23c2671..6f8e44822ba1 100644
--- a/pkgs/development/python-modules/ansible/default.nix
+++ b/pkgs/development/python-modules/ansible/default.nix
@@ -1,27 +1,28 @@
-{ lib
-, pythonOlder
-, buildPythonPackage
-, fetchPypi
-, jsonschema
-, jxmlease
-, ncclient
-, netaddr
-, paramiko
-, ansible-pylibssh
-, pynetbox
-, scp
-, textfsm
-, ttp
-, xmltodict
+{
+  lib,
+  pythonOlder,
+  buildPythonPackage,
+  fetchPypi,
+  jsonschema,
+  jxmlease,
+  ncclient,
+  netaddr,
+  paramiko,
+  ansible-pylibssh,
+  pynetbox,
+  scp,
+  textfsm,
+  ttp,
+  xmltodict,
 
-# optionals
-, withJunos ? false
-, withNetbox ? false
+  # optionals
+  withJunos ? false,
+  withNetbox ? false,
 }:
 
 let
   pname = "ansible";
-  version = "9.5.1";
+  version = "10.4.0";
 in
 buildPythonPackage {
   inherit pname version;
@@ -31,7 +32,7 @@ buildPythonPackage {
 
   src = fetchPypi {
     inherit pname version;
-    hash = "sha256-PCeLyWQrl/yVOyugW5nNgIAedb81Z9+qHLUTH+DsHs0=";
+    hash = "sha256-XBIEiDGmaQ/IZd/gPcirYcO6CLXQGySaFrJHrZmmC8A=";
   };
 
   postPatch = ''
@@ -39,38 +40,42 @@ buildPythonPackage {
     sed -Ei '/ansible-core/d' setup.py
   '';
 
-  propagatedBuildInputs = lib.unique ([
-    # Support ansible collections by default, make all others optional
-    # ansible.netcommon
-    jxmlease
-    ncclient
-    netaddr
-    paramiko
-    ansible-pylibssh
-    xmltodict
-    # ansible.posix
-    # ansible.utils
-    jsonschema
-    textfsm
-    ttp
-    xmltodict
-    # ansible.windows
+  propagatedBuildInputs = lib.unique (
+    [
+      # Support ansible collections by default, make all others optional
+      # ansible.netcommon
+      jxmlease
+      ncclient
+      netaddr
+      paramiko
+      ansible-pylibssh
+      xmltodict
+      # ansible.posix
+      # ansible.utils
+      jsonschema
+      textfsm
+      ttp
+      xmltodict
+      # ansible.windows
 
-    # lots of collections with dedicated requirements.txt and pyproject.toml files,
-    # add the dependencies for the collections you need conditionally and install
-    # ansible using overrides to enable the collections you need.
-  ] ++ lib.optionals (withJunos) [
-    # ansible_collections/junipernetworks/junos/requirements.txt
-    jxmlease
-    ncclient
-    paramiko
-    ansible-pylibssh
-    scp
-    xmltodict
-  ] ++ lib.optionals (withNetbox) [
-    # ansible_collections/netbox/netbox/pyproject.toml
-    pynetbox
-  ]);
+      # lots of collections with dedicated requirements.txt and pyproject.toml files,
+      # add the dependencies for the collections you need conditionally and install
+      # ansible using overrides to enable the collections you need.
+    ]
+    ++ lib.optionals (withJunos) [
+      # ansible_collections/junipernetworks/junos/requirements.txt
+      jxmlease
+      ncclient
+      paramiko
+      ansible-pylibssh
+      scp
+      xmltodict
+    ]
+    ++ lib.optionals (withNetbox) [
+      # ansible_collections/netbox/netbox/pyproject.toml
+      pynetbox
+    ]
+  );
 
   # don't try and fail to strip 48000+ non strippable files, it takes >5 minutes!
   dontStrip = true;
@@ -84,6 +89,6 @@ buildPythonPackage {
     homepage = "https://www.ansible.com";
     changelog = "https://github.com/ansible-community/ansible-build-data/blob/${version}/${lib.versions.major version}/CHANGELOG-v${lib.versions.major version}.rst";
     license = licenses.gpl3Plus;
-    maintainers = with maintainers; [ ];
+    maintainers = [ ];
   };
 }