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