Skip to content

Commit a59f454

Browse files
authored
python312Packages.numpydoc: cleanup and skip failing tests (NixOS#379945)
2 parents 12a098d + a74399e commit a59f454

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

pkgs/development/python-modules/numpydoc/default.nix

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,55 @@
22
lib,
33
buildPythonPackage,
44
fetchPypi,
5-
isPy27,
5+
6+
# build-system
67
setuptools,
8+
9+
# dependencies
710
jinja2,
811
sphinx,
912
tabulate,
10-
pytestCheckHook,
13+
14+
# tests
1115
matplotlib,
16+
pytest-cov-stub,
17+
pytestCheckHook,
1218
}:
1319

1420
buildPythonPackage rec {
1521
pname = "numpydoc";
1622
version = "1.8.0";
1723
pyproject = true;
1824

19-
disabled = isPy27;
20-
2125
src = fetchPypi {
2226
inherit pname;
2327
inherit version;
2428
hash = "sha256-AiOQq3RkpE+HN/efizHOHTz6S0r3nMqhqsXoNo21h/s=";
2529
};
2630

27-
postPatch = ''
28-
substituteInPlace pyproject.toml \
29-
--replace "--cov-report=" "" \
30-
--replace "--cov=numpydoc" ""
31-
'';
31+
build-system = [ setuptools ];
3232

33-
nativeBuildInputs = [ setuptools ];
34-
35-
propagatedBuildInputs = [
33+
dependencies = [
3634
jinja2
3735
sphinx
3836
tabulate
3937
];
4038

4139
nativeCheckInputs = [
4240
matplotlib
41+
pytest-cov-stub
4342
pytestCheckHook
4443
];
4544

4645
disabledTests = [
4746
# https://github.com/numpy/numpydoc/issues/373
4847
"test_MyClass"
4948
"test_my_function"
50-
"test_reference"
49+
50+
# AttributeError: 'MockApp' object has no attribute '_exception_on_warning'
51+
"test_mangle_docstring_validation_exclude"
52+
"test_mangle_docstring_validation_warnings"
53+
"test_mangle_docstrings_overrides"
5154
];
5255

5356
pythonImportsCheck = [ "numpydoc" ];

0 commit comments

Comments
 (0)