Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pytest-instafail / default.nix
blob3b237105d4c0da2d5661739b0e0be8a25aa136d0
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytest
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "pytest-instafail";
11   version = "0.5.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchPypi {
17     inherit pname version;
18     sha256 = "sha256-M6YG9+DI5kbcO/7g1eOkt7eO98NhaM+h89k698pwbJ4=";
19   };
21   buildInputs = [
22     pytest
23   ];
25   nativeCheckInputs = [
26     pytestCheckHook
27   ];
29   pythonImportsCheck = [
30     "pytest_instafail"
31   ];
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   };