Skip to content

Commit

Permalink
python312Packages.ansible-compat: 24.9.1 -> 24.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Dec 31, 2024
1 parent b0f581f commit 4cb18b6
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions pkgs/development/python-modules/ansible-compat/default.nix
Original file line number Diff line number Diff line change
@@ -1,33 +1,38 @@
{
lib,
buildPythonPackage,
fetchPypi,
ansible-core,
fetchFromGitHub,

# build-system
setuptools,
setuptools-scm,

# dependencies
pyyaml,
subprocess-tee,

# tests
coreutils,
ansible-core,
flaky,
git,
pytest-mock,
pytestCheckHook,
pyyaml,
setuptools,
setuptools-scm,
subprocess-tee,
pythonOlder,
}:

buildPythonPackage rec {
pname = "ansible-compat";
version = "24.9.1";
version = "24.10.0";
pyproject = true;

disabled = pythonOlder "3.10";

src = fetchPypi {
pname = "ansible_compat";
inherit version;
hash = "sha256-n/ICReG9nemyOjZ5AlJKsOEfvPt0GDGZbaXaW2Crld8=";
src = fetchFromGitHub {
owner = "ansible";
repo = "ansible-compat";
tag = "v${version}";
hash = "sha256-cc97ENpoRoaYaGbnGeHU5z+ijCS8PLWtgXpQ0F3b5rk=";
};

nativeBuildInputs = [
build-system = [
setuptools
setuptools-scm
];
Expand All @@ -40,26 +45,26 @@ buildPythonPackage rec {
preCheck = ''
export HOME=$(mktemp -d)
substituteInPlace test/test_runtime.py \
--replace-fail "printenv" "${coreutils}/bin/printenv"
--replace-fail "printenv" "${lib.getExe' coreutils "printenv"}"
'';

nativeCheckInputs = [
ansible-core
flaky
git
pytest-mock
pytestCheckHook
];

disabledTests = [
# require network
"test_install_collection_from_disk"
"test_install_collection_git"
"test_load_plugins"
"test_prepare_environment_with_collections"
"test_prerun_reqs_v1"
"test_prerun_reqs_v2"
"test_require_collection_wrong_version"
"test_require_collection"
"test_install_collection"
"test_install_collection_dest"
"test_upgrade_collection"
"test_require_collection_install"
"test_require_collection_no_cache_dir"
"test_runtime_has_playbook"
"test_runtime_plugins"
Expand All @@ -68,11 +73,11 @@ buildPythonPackage rec {

pythonImportsCheck = [ "ansible_compat" ];

meta = with lib; {
meta = {
description = "Function collection that help interacting with various versions of Ansible";
homepage = "https://github.com/ansible/ansible-compat";
changelog = "https://github.com/ansible/ansible-compat/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ dawidd6 ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dawidd6 ];
};
}

0 comments on commit 4cb18b6

Please sign in to comment.