1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 isPy27, 6 setuptools, 7 jinja2, 8 sphinx, 9 tabulate, 10 pytestCheckHook, 11 matplotlib, 12}: 13 14buildPythonPackage rec { 15 pname = "numpydoc"; 16 version = "1.7.0"; 17 pyproject = true; 18 19 disabled = isPy27; 20 21 src = fetchPypi { 22 inherit pname; 23 inherit version; 24 hash = "sha256-hm5a5bZQnc+HP8Y4ESD1wxrPE7E1Y2wagdaMFmqV+SE="; 25 }; 26 27 postPatch = '' 28 substituteInPlace pyproject.toml \ 29 --replace "--cov-report=" "" \ 30 --replace "--cov=numpydoc" "" 31 ''; 32 33 nativeBuildInputs = [ setuptools ]; 34 35 propagatedBuildInputs = [ 36 jinja2 37 sphinx 38 tabulate 39 ]; 40 41 nativeCheckInputs = [ 42 matplotlib 43 pytestCheckHook 44 ]; 45 46 disabledTests = [ 47 # https://github.com/numpy/numpydoc/issues/373 48 "test_MyClass" 49 "test_my_function" 50 "test_reference" 51 ]; 52 53 pythonImportsCheck = [ "numpydoc" ]; 54 55 meta = { 56 changelog = "https://github.com/numpy/numpydoc/releases/tag/v${version}"; 57 description = "Sphinx extension to support docstrings in Numpy format"; 58 mainProgram = "validate-docstrings"; 59 homepage = "https://github.com/numpy/numpydoc"; 60 license = lib.licenses.free; 61 }; 62}