1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytest,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-instafail";
12 version = "0.5.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-M6YG9+DI5kbcO/7g1eOkt7eO98NhaM+h89k698pwbJ4=";
20 };
21
22 buildInputs = [ pytest ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 pythonImportsCheck = [ "pytest_instafail" ];
27
28 meta = with lib; {
29 description = "Pytest plugin that shows failures and errors instantly instead of waiting until the end of test session";
30 homepage = "https://github.com/pytest-dev/pytest-instafail";
31 changelog = "https://github.com/pytest-dev/pytest-instafail/blob/v${version}/CHANGES.rst";
32 license = licenses.bsd3;
33 maintainers = with maintainers; [ jacg ];
34 };
35}