about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-ansible/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pytest-ansible/default.nix')
-rw-r--r--pkgs/development/python-modules/pytest-ansible/default.nix98
1 files changed, 48 insertions, 50 deletions
diff --git a/pkgs/development/python-modules/pytest-ansible/default.nix b/pkgs/development/python-modules/pytest-ansible/default.nix
index b73ae05a8cce4..a95648618f38f 100644
--- a/pkgs/development/python-modules/pytest-ansible/default.nix
+++ b/pkgs/development/python-modules/pytest-ansible/default.nix
@@ -1,21 +1,22 @@
-{ lib
-, stdenv
-, ansible-compat
-, ansible-core
-, buildPythonPackage
-, coreutils
-, fetchFromGitHub
-, packaging
-, pytest
-, pytestCheckHook
-, pythonOlder
-, setuptools
-, setuptools-scm
+{
+  lib,
+  stdenv,
+  ansible-compat,
+  ansible-core,
+  buildPythonPackage,
+  coreutils,
+  fetchFromGitHub,
+  packaging,
+  pytest,
+  pytestCheckHook,
+  pythonOlder,
+  setuptools,
+  setuptools-scm,
 }:
 
 buildPythonPackage rec {
   pname = "pytest-ansible";
-  version = "24.1.2";
+  version = "24.1.3";
   pyproject = true;
 
   disabled = pythonOlder "3.10";
@@ -24,7 +25,7 @@ buildPythonPackage rec {
     owner = "ansible";
     repo = "pytest-ansible";
     rev = "refs/tags/v${version}";
-    hash = "sha256-NtGk+azpSZZm9PUf6Q1Qipo/zaUH+bed7k3oFnQyKjw=";
+    hash = "sha256-pQNm7Q9NAc/jLlR6f0132tpXyBoQaKpm7JoEgqOJL8U=";
   };
 
   postPatch = ''
@@ -37,9 +38,7 @@ buildPythonPackage rec {
     setuptools-scm
   ];
 
-  buildInputs = [
-    pytest
-  ];
+  buildInputs = [ pytest ];
 
   propagatedBuildInputs = [
     ansible-core
@@ -47,46 +46,45 @@ buildPythonPackage rec {
     packaging
   ];
 
-  nativeCheckInputs = [
-    pytestCheckHook
-  ];
+  nativeCheckInputs = [ pytestCheckHook ];
 
   preCheck = ''
     export HOME=$TMPDIR
   '';
 
-  pytestFlagsArray = [
-    "tests/"
-  ];
+  pytestFlagsArray = [ "tests/" ];
 
-  disabledTests = [
-    # Host unreachable in the inventory
-    "test_become"
-    # [Errno -3] Temporary failure in name resolution
-    "test_connection_failure_v2"
-    "test_connection_failure_extra_inventory_v2"
-  ] ++ lib.optionals stdenv.isDarwin [
-    # These tests fail in the Darwin sandbox
-    "test_ansible_facts"
-    "test_func"
-    "test_param_override_with_marker"
-  ];
+  disabledTests =
+    [
+      # Host unreachable in the inventory
+      "test_become"
+      # [Errno -3] Temporary failure in name resolution
+      "test_connection_failure_v2"
+      "test_connection_failure_extra_inventory_v2"
+    ]
+    ++ lib.optionals stdenv.isDarwin [
+      # These tests fail in the Darwin sandbox
+      "test_ansible_facts"
+      "test_func"
+      "test_param_override_with_marker"
+    ];
 
-  disabledTestPaths = [
-    # Test want s to execute pytest in a subprocess
-    "tests/integration/test_molecule.py"
-  ] ++ lib.optionals stdenv.isDarwin [
-    # These tests fail in the Darwin sandbox
-    "tests/test_adhoc.py"
-    "tests/test_adhoc_result.py"
-  ] ++ lib.optionals (lib.versionAtLeast ansible-core.version "2.16") [
-    # Test fail in the NixOS environment
-    "tests/test_adhoc.py"
-  ];
+  disabledTestPaths =
+    [
+      # Test want s to execute pytest in a subprocess
+      "tests/integration/test_molecule.py"
+    ]
+    ++ lib.optionals stdenv.isDarwin [
+      # These tests fail in the Darwin sandbox
+      "tests/test_adhoc.py"
+      "tests/test_adhoc_result.py"
+    ]
+    ++ lib.optionals (lib.versionAtLeast ansible-core.version "2.16") [
+      # Test fail in the NixOS environment
+      "tests/test_adhoc.py"
+    ];
 
-  pythonImportsCheck = [
-    "pytest_ansible"
-  ];
+  pythonImportsCheck = [ "pytest_ansible" ];
 
   meta = with lib; {
     description = "Plugin for pytest to simplify calling ansible modules from tests or fixtures";