Skip to content

Commit

Permalink
python311Packages.pytest-ansible: 4.1.1 -> 24.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Jan 14, 2024
1 parent 5ea284d commit 722d7cd
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions pkgs/development/python-modules/pytest-ansible/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{ lib
, stdenv
, ansible-compat
, ansible-core
, buildPythonPackage
, coreutils
, fetchFromGitHub
, packaging
, pytest
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
, wheel
}:

buildPythonPackage rec {
pname = "pytest-ansible";
version = "4.1.1";
format = "pyproject";
version = "24.1.1";
pyproject = true;

disabled = pythonOlder "3.9";
disabled = pythonOlder "3.10";

src = fetchFromGitHub {
owner = "ansible";
repo = "pytest-ansible";
rev = "refs/tags/v${version}";
hash = "sha256-51DQ+NwD454XaYLuRxriuWRZ8uTSX3ZpadXdxs7FspQ=";
hash = "sha256-UPQx+CGJgaK4XVNngtzzncSueQN9LWh1gMmH5nGtPNk=";
};

postPatch = ''
Expand All @@ -34,7 +35,6 @@ buildPythonPackage rec {
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];

buildInputs = [
Expand All @@ -43,6 +43,8 @@ buildPythonPackage rec {

propagatedBuildInputs = [
ansible-core
ansible-compat
packaging
];

nativeCheckInputs = [
Expand Down Expand Up @@ -77,6 +79,9 @@ buildPythonPackage rec {
# 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 = [
Expand Down

0 comments on commit 722d7cd

Please sign in to comment.