2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-02-05 17:12:51 +00:00
|
|
|
, fetchPypi
|
2023-04-12 12:48:02 +00:00
|
|
|
, pytest
|
2021-02-05 17:12:51 +00:00
|
|
|
, pytestCheckHook
|
2023-04-12 12:48:02 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-instafail";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-12 12:48:02 +00:00
|
|
|
sha256 = "sha256-M6YG9+DI5kbcO/7g1eOkt7eO98NhaM+h89k698pwbJ4=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_instafail"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "pytest plugin that shows failures and errors instantly instead of waiting until the end of test session";
|
|
|
|
homepage = "https://github.com/pytest-dev/pytest-instafail";
|
2023-04-12 12:48:02 +00:00
|
|
|
changelog = "https://github.com/pytest-dev/pytest-instafail/blob/v${version}/CHANGES.rst";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jacg ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|