depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-doctestplus/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

54 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, packaging
, pytest
, pytestCheckHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pytest-doctestplus";
version = "0.10.1";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "7e9e0912c206c53cd6ee996265aa99d5c99c9334e37d025ce6114bc0416ffc14";
};
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 ];
};
}