nixpkgs/pkgs/development/python-modules/pytest-doctestplus/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

64 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
gitMinimal,
numpy,
packaging,
pytest,
pytestCheckHook,
pythonOlder,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pytest-doctestplus";
version = "1.2.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-JHKoosjOo00vZfZJlUP663SO7LWcWXhS/ZiDm0cwdnk=";
};
postPatch = ''
substituteInPlace pytest_doctestplus/plugin.py \
--replace-fail '"git"' '"${lib.getExe gitMinimal}"'
'';
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ pytest ];
propagatedBuildInputs = [
packaging
setuptools
];
nativeCheckInputs = [
numpy
pytestCheckHook
];
disabledTests = [
# ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
# __main__.py: error: unrecognized arguments: --remote-data
"test_remote_data_url"
"test_remote_data_float_cmp"
"test_remote_data_ignore_whitespace"
"test_remote_data_ellipsis"
"test_remote_data_requires"
"test_remote_data_ignore_warnings"
];
meta = with lib; {
description = "Pytest plugin with advanced doctest features";
homepage = "https://astropy.org";
license = licenses.bsd3;
maintainers = [ ];
};
}