depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-doctestplus/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

58 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, packaging
, pytest
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pytest-doctestplus";
version = "0.12.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-epeeS+mdkRbgesBmxfANRfOHZ319d5877zDG/6jHkYE=";
};
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [
pytest
];
propagatedBuildInputs = [
packaging
setuptools
];
checkInputs = [
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 = with maintainers; [ costrouc ];
};
}