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