depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-instafail/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

40 lines
867 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-instafail";
version = "0.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-M6YG9+DI5kbcO/7g1eOkt7eO98NhaM+h89k698pwbJ4=";
};
buildInputs = [
pytest
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pytest_instafail"
];
meta = with lib; {
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";
changelog = "https://github.com/pytest-dev/pytest-instafail/blob/v${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ jacg ];
};
}