python310Packages.ansible-compat: init at 0.5.0

This commit is contained in:
Sandro Jäckel 2022-03-29 18:01:06 +02:00
parent 72dab1fa30
commit 3057fe56eb
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,66 @@
{ lib
, buildPythonPackage
, fetchPypi
, ansible
, flaky
, pytest-mock
, pytestCheckHook
, pyyaml
, setuptools-scm
, subprocess-tee
}:
buildPythonPackage rec {
pname = "ansible-compat";
version = "2.0.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-xlGZXcMj7xRbq4V/7mVA/ryIH7cbf+r+gWPUnicxY6U=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
pyyaml
subprocess-tee
];
preCheck = ''
export HOME=$(mktemp -d)
export PATH=$PATH:$out/bin
'';
checkInputs = [
ansible
flaky
pytest-mock
pytestCheckHook
];
disabledTests = [
# require network
"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_no_cache_dir"
"test_runtime"
];
pythonImportsCheck = [ "ansible_compat" ];
meta = with lib; {
description = "A python package containing functions that help interacting with various versions of Ansible";
homepage = "https://github.com/ansible/ansible-compat";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -520,6 +520,8 @@ in {
ansible-base = callPackage ../development/python-modules/ansible/base.nix { };
ansible-compat = callPackage ../development/python-modules/ansible-compat { };
ansible-core = callPackage ../development/python-modules/ansible/core.nix { };
ansible-doctor = callPackage ../development/python-modules/ansible-doctor { };