mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
0215034f25
when they already rely on SRI hashes.
59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, jinja2
|
|
, sphinx
|
|
, pytestCheckHook
|
|
, matplotlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "numpydoc";
|
|
version = "1.5.0";
|
|
format = "setuptools";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname;
|
|
inherit version;
|
|
hash = "sha256-sNt7daMjZ6DiXCOzl4QsZeNEoSBlJNFsgGnwockbX0w=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "Jinja2>=2.10,<3.1" "Jinja2>=2.10,<3.2"
|
|
substituteInPlace setup.cfg \
|
|
--replace "--cov-report=" "" \
|
|
--replace "--cov=numpydoc" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
jinja2
|
|
sphinx
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
matplotlib
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# https://github.com/numpy/numpydoc/issues/373
|
|
"test_MyClass"
|
|
"test_my_function"
|
|
"test_reference"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"numpydoc"
|
|
];
|
|
|
|
meta = {
|
|
description = "Sphinx extension to support docstrings in Numpy format";
|
|
homepage = "https://github.com/numpy/numpydoc";
|
|
license = lib.licenses.free;
|
|
};
|
|
}
|