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