15 buildPythonPackage rec {
16 pname = "pytest-testinfra";
20 disabled = pythonOlder "3.9";
23 inherit pname version;
24 hash = "sha256-qHbxRToBtY2U2dk23VA0TCwBrHiAorQdFb3yM67Zzx8=";
27 build-system = [ setuptools-scm ];
38 # Markers don't get added when docker is not available (leads to warnings):
39 # https://github.com/pytest-dev/pytest-testinfra/blob/9.0.0/test/conftest.py#L223
41 export HOME=$(mktemp -d)
42 sed -i '54imarkers = \
43 \ttestinfra_hosts(host_selector): mark test to run on selected hosts \
44 \tdestructive: mark test as destructive \
45 \tskip_wsl: skip test on WSL, no systemd support' setup.cfg
49 # docker is required for all disabled tests
50 # test/test_backends.py
53 "test_ansible_any_error_fatal"
54 "test_user_connection"
56 "test_docker_encoding"
57 # Broken because salt package only built for Python
58 "test_backend_importables"
61 disabledTestPaths = [ "test/test_modules.py" ];
64 description = "Pytest plugin for testing your infrastructure";
65 homepage = "https://github.com/pytest-dev/pytest-testinfra";
66 changelog = "https://github.com/pytest-dev/pytest-testinfra/releases/tag/${version}";
67 license = licenses.asl20;
68 maintainers = with maintainers; [ hulr ];