depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-doctestplus/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

54 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, packaging
, pytest
, pytestCheckHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pytest-doctestplus";
version = "0.11.1";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "b7a0aeb79b85ee81a3c72c49019b4bfeb57fa920abaa6c17ba8be3be9c5290f1";
};
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [
pytest
];
propagatedBuildInputs = [
packaging
];
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 = [ maintainers.costrouc ];
};
}