1{ lib
2, buildPythonPackage
3, fetchPypi
4, packaging
5, pytest
6, pytestCheckHook
7, pythonOlder
8, setuptools
9, setuptools-scm
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-doctestplus";
14 version = "0.12.1";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-epeeS+mdkRbgesBmxfANRfOHZ319d5877zDG/6jHkYE=";
22 };
23
24 nativeBuildInputs = [
25 setuptools-scm
26 ];
27
28 buildInputs = [
29 pytest
30 ];
31
32 propagatedBuildInputs = [
33 packaging
34 setuptools
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 ];
40
41 disabledTests = [
42 # ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
43 # __main__.py: error: unrecognized arguments: --remote-data
44 "test_remote_data_url"
45 "test_remote_data_float_cmp"
46 "test_remote_data_ignore_whitespace"
47 "test_remote_data_ellipsis"
48 "test_remote_data_requires"
49 "test_remote_data_ignore_warnings"
50 ];
51
52 meta = with lib; {
53 description = "Pytest plugin with advanced doctest features";
54 homepage = "https://astropy.org";
55 license = licenses.bsd3;
56 maintainers = with maintainers; [ costrouc ];
57 };
58}