linuxPackages_latest.broadcom_sta: add patch to compile on Kernel 6.12 (#359484)
[NixPkgs.git] / pkgs / development / python-modules / numpydoc / default.nix
blobd651c5f4fd017c6d4d2dfa68095b88de513f59e3
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   isPy27,
6   setuptools,
7   jinja2,
8   sphinx,
9   tabulate,
10   pytestCheckHook,
11   matplotlib,
14 buildPythonPackage rec {
15   pname = "numpydoc";
16   version = "1.8.0";
17   pyproject = true;
19   disabled = isPy27;
21   src = fetchPypi {
22     inherit pname;
23     inherit version;
24     hash = "sha256-AiOQq3RkpE+HN/efizHOHTz6S0r3nMqhqsXoNo21h/s=";
25   };
27   postPatch = ''
28     substituteInPlace pyproject.toml \
29       --replace "--cov-report=" "" \
30       --replace "--cov=numpydoc" ""
31   '';
33   nativeBuildInputs = [ setuptools ];
35   propagatedBuildInputs = [
36     jinja2
37     sphinx
38     tabulate
39   ];
41   nativeCheckInputs = [
42     matplotlib
43     pytestCheckHook
44   ];
46   disabledTests = [
47     # https://github.com/numpy/numpydoc/issues/373
48     "test_MyClass"
49     "test_my_function"
50     "test_reference"
51   ];
53   pythonImportsCheck = [ "numpydoc" ];
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   };