2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
isPy27,
|
|
|
|
setuptools,
|
|
|
|
jinja2,
|
|
|
|
sphinx,
|
|
|
|
tabulate,
|
|
|
|
pytestCheckHook,
|
|
|
|
matplotlib,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "numpydoc";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.7.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname;
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-hm5a5bZQnc+HP8Y4ESD1wxrPE7E1Y2wagdaMFmqV+SE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = ''
|
2024-01-13 08:15:51 +00:00
|
|
|
substituteInPlace pyproject.toml \
|
2022-04-27 09:35:20 +00:00
|
|
|
--replace "--cov-report=" "" \
|
|
|
|
--replace "--cov=numpydoc" ""
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jinja2
|
|
|
|
sphinx
|
2024-01-13 08:15:51 +00:00
|
|
|
tabulate
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
matplotlib
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/numpy/numpydoc/issues/373
|
|
|
|
"test_MyClass"
|
|
|
|
"test_my_function"
|
|
|
|
"test_reference"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "numpydoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/numpy/numpydoc/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Sphinx extension to support docstrings in Numpy format";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "validate-docstrings";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/numpy/numpydoc";
|
|
|
|
license = lib.licenses.free;
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|