Unverified Commit bcb4da11 authored by Fabián Heredia Montiel's avatar Fabián Heredia Montiel Committed by GitHub
Browse files

pythonPackages.pytest-ansible: 25.5.0 -> 25.6.3, pythonPackages.pytest-plus:...

pythonPackages.pytest-ansible: 25.5.0 -> 25.6.3, pythonPackages.pytest-plus: init at 0.8.1 (#431958)
parents 822a2fb7 75e6384b
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -8,6 +8,9 @@
  fetchFromGitHub,
  packaging,
  pytest,
  pytest-plus,
  pytest-sugar,
  pytest-xdist,
  pytestCheckHook,
  pythonOlder,
  setuptools,
@@ -44,6 +47,9 @@ buildPythonPackage rec {
    ansible-core
    ansible-compat
    packaging
    pytest-plus
    pytest-sugar
    pytest-xdist
  ];

  nativeCheckInputs = [ pytestCheckHook ];
@@ -55,6 +61,8 @@ buildPythonPackage rec {
  enabledTestPaths = [ "tests/" ];

  disabledTests = [
    # pytest unrecognized arguments in test_pool.py
    "test_ansible_test"
    # Host unreachable in the inventory
    "test_become"
    # [Errno -3] Temporary failure in name resolution
@@ -89,6 +97,9 @@ buildPythonPackage rec {
    homepage = "https://github.com/jlaska/pytest-ansible";
    changelog = "https://github.com/ansible-community/pytest-ansible/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with maintainers; [ tjni ];
    maintainers = with maintainers; [
      tjni
      robsliwi
    ];
  };
}
+43 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  pythonOlder,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "pytest-plus";
  version = "0.8.1";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "pytest-dev";
    repo = "pytest-plus";
    tag = "v${version}";
    hash = "sha256-XlEtekOASIjZretTbQAf0eyQN6qZ9c6zI1ESss/hxfI=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  enabledTestPaths = [ "test/" ];

  pythonImportsCheck = [ "pytest_plus" ];

  meta = with lib; {
    description = "pytest-plus adds new features to pytest";
    homepage = "https://github.com/pytest-dev/pytest-plus";
    changelog = "https://github.com/pytest-dev/pytest-plus/releases/tag/${src.tag}";
    license = licenses.mit;
    maintainers = with maintainers; [ robsliwi ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -14397,6 +14397,8 @@ self: super: with self; {
  pytest-plt = callPackage ../development/python-modules/pytest-plt { };
  pytest-plus = callPackage ../development/python-modules/pytest-plus { };
  pytest-pook = callPackage ../development/python-modules/pytest-pook { };
  pytest-postgresql = callPackage ../development/python-modules/pytest-postgresql { };