1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 16:39:31 +03:00
nixpkgs/pkgs/development/python-modules/numpydoc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools
, jinja2
2018-02-18 19:40:53 +01:00
, sphinx
, tabulate
, pytestCheckHook
, matplotlib
2018-02-18 19:40:53 +01:00
}:
buildPythonPackage rec {
pname = "numpydoc";
version = "1.6.0";
pyproject = true;
disabled = isPy27;
2018-02-18 19:40:53 +01:00
src = fetchPypi {
inherit pname;
inherit version;
hash = "sha256-rnpTgPCgY3PDr+FszRW9ebxrB/JwTLxvHn7MlLT1/A0=";
2018-02-18 19:40:53 +01:00
};
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"
];
2018-02-18 19:40:53 +01:00
meta = {
changelog = "https://github.com/numpy/numpydoc/releases/tag/v${version}";
2018-02-18 19:40:53 +01:00
description = "Sphinx extension to support docstrings in Numpy format";
mainProgram = "validate-docstrings";
2018-02-18 19:40:53 +01:00
homepage = "https://github.com/numpy/numpydoc";
license = lib.licenses.free;
};
}