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