Skip to content

Commit bcb4da1

Browse files
authored
pythonPackages.pytest-ansible: 25.5.0 -> 25.6.3, pythonPackages.pytest-plus: init at 0.8.1 (#431958)
2 parents 822a2fb + 75e6384 commit bcb4da1

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
lines changed

pkgs/development/python-modules/pytest-ansible/default.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
fetchFromGitHub,
99
packaging,
1010
pytest,
11+
pytest-plus,
12+
pytest-sugar,
13+
pytest-xdist,
1114
pytestCheckHook,
1215
pythonOlder,
1316
setuptools,
@@ -44,6 +47,9 @@ buildPythonPackage rec {
4447
ansible-core
4548
ansible-compat
4649
packaging
50+
pytest-plus
51+
pytest-sugar
52+
pytest-xdist
4753
];
4854

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

5763
disabledTests = [
64+
# pytest unrecognized arguments in test_pool.py
65+
"test_ansible_test"
5866
# Host unreachable in the inventory
5967
"test_become"
6068
# [Errno -3] Temporary failure in name resolution
@@ -89,6 +97,9 @@ buildPythonPackage rec {
8997
homepage = "https://github.com/jlaska/pytest-ansible";
9098
changelog = "https://github.com/ansible-community/pytest-ansible/releases/tag/${src.tag}";
9199
license = licenses.mit;
92-
maintainers = with maintainers; [ tjni ];
100+
maintainers = with maintainers; [
101+
tjni
102+
robsliwi
103+
];
93104
};
94105
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
pytestCheckHook,
6+
pythonOlder,
7+
setuptools,
8+
setuptools-scm,
9+
}:
10+
11+
buildPythonPackage rec {
12+
pname = "pytest-plus";
13+
version = "0.8.1";
14+
pyproject = true;
15+
16+
disabled = pythonOlder "3.10";
17+
18+
src = fetchFromGitHub {
19+
owner = "pytest-dev";
20+
repo = "pytest-plus";
21+
tag = "v${version}";
22+
hash = "sha256-XlEtekOASIjZretTbQAf0eyQN6qZ9c6zI1ESss/hxfI=";
23+
};
24+
25+
build-system = [
26+
setuptools
27+
setuptools-scm
28+
];
29+
30+
nativeCheckInputs = [ pytestCheckHook ];
31+
32+
enabledTestPaths = [ "test/" ];
33+
34+
pythonImportsCheck = [ "pytest_plus" ];
35+
36+
meta = with lib; {
37+
description = "pytest-plus adds new features to pytest";
38+
homepage = "https://github.com/pytest-dev/pytest-plus";
39+
changelog = "https://github.com/pytest-dev/pytest-plus/releases/tag/${src.tag}";
40+
license = licenses.mit;
41+
maintainers = with maintainers; [ robsliwi ];
42+
};
43+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14397,6 +14397,8 @@ self: super: with self; {
1439714397

1439814398
pytest-plt = callPackage ../development/python-modules/pytest-plt { };
1439914399

14400+
pytest-plus = callPackage ../development/python-modules/pytest-plus { };
14401+
1440014402
pytest-pook = callPackage ../development/python-modules/pytest-pook { };
1440114403

1440214404
pytest-postgresql = callPackage ../development/python-modules/pytest-postgresql { };

0 commit comments

Comments
 (0)