at master 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 jinja2, 11 sphinx, 12 tabulate, 13 14 # tests 15 matplotlib, 16 pytest-cov-stub, 17 pytestCheckHook, 18}: 19 20buildPythonPackage rec { 21 pname = "numpydoc"; 22 version = "1.9.0"; 23 pyproject = true; 24 25 src = fetchPypi { 26 inherit pname; 27 inherit version; 28 hash = "sha256-X+xkkI/gQazEs6/CoyxJqrFUDPWBh29VY9aLsSnifFs="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 jinja2 35 sphinx 36 tabulate 37 ]; 38 39 nativeCheckInputs = [ 40 matplotlib 41 pytest-cov-stub 42 pytestCheckHook 43 ]; 44 45 disabledTests = [ 46 # https://github.com/numpy/numpydoc/issues/373 47 "test_MyClass" 48 "test_my_function" 49 50 # AttributeError: 'MockApp' object has no attribute '_exception_on_warning' 51 "test_mangle_docstring_validation_exclude" 52 "test_mangle_docstring_validation_warnings" 53 "test_mangle_docstrings_overrides" 54 # AttributeError: 'MockBuilder' object has no attribute '_translator' 55 "test_mangle_docstrings_basic" 56 "test_mangle_docstrings_inherited_class_members" 57 ]; 58 59 pythonImportsCheck = [ "numpydoc" ]; 60 61 meta = { 62 changelog = "https://github.com/numpy/numpydoc/releases/tag/v${version}"; 63 description = "Sphinx extension to support docstrings in Numpy format"; 64 mainProgram = "validate-docstrings"; 65 homepage = "https://github.com/numpy/numpydoc"; 66 license = lib.licenses.free; 67 }; 68}