depot/third_party/nixpkgs/pkgs/development/python-modules/numpydoc/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

64 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools
, jinja2
, sphinx
, tabulate
, pytestCheckHook
, matplotlib
}:
buildPythonPackage rec {
pname = "numpydoc";
version = "1.6.0";
pyproject = true;
disabled = isPy27;
src = fetchPypi {
inherit pname;
inherit version;
hash = "sha256-rnpTgPCgY3PDr+FszRW9ebxrB/JwTLxvHn7MlLT1/A0=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov-report=" "" \
--replace "--cov=numpydoc" ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
jinja2
sphinx
tabulate
];
nativeCheckInputs = [
matplotlib
pytestCheckHook
];
disabledTests = [
# https://github.com/numpy/numpydoc/issues/373
"test_MyClass"
"test_my_function"
"test_reference"
];
pythonImportsCheck = [
"numpydoc"
];
meta = {
changelog = "https://github.com/numpy/numpydoc/releases/tag/v${version}";
description = "Sphinx extension to support docstrings in Numpy format";
homepage = "https://github.com/numpy/numpydoc";
license = lib.licenses.free;
};
}