2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-09-18 10:52:07 +00:00
|
|
|
, pythonOlder
|
|
|
|
, packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytestCheckHook
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-doctestplus";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.11.1";
|
2021-09-18 10:52:07 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "b7a0aeb79b85ee81a3c72c49019b4bfeb57fa920abaa6c17ba8be3be9c5290f1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest plugin with advanced doctest features";
|
|
|
|
homepage = "https://astropy.org";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|