2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytest,
|
|
|
|
tappy,
|
|
|
|
pytestCheckHook,
|
2023-01-11 07:51:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-tap";
|
|
|
|
version = "3.3";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-tap";
|
|
|
|
repo = "pytest-tap";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "R0RSdKTyJYGq+x0+ut4pJEywTGNgGp/ps36ZaH5dyY4=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ pytest ];
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ tappy ];
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Fixed in 4ed0138bf659c348b6dfb8bb701ae1989625d3d8 and hopefully in next release
|
|
|
|
"test_unittest_expected_failure"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pytest_tap" ];
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Test Anything Protocol (TAP) reporting plugin for pytest";
|
|
|
|
homepage = "https://github.com/python-tap/pytest-tap";
|
|
|
|
changelog = "https://github.com/python-tap/pytest-tap/blob/v${version}/docs/releases.rst";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ cynerd ];
|
|
|
|
};
|
|
|
|
}
|