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