From f4213717f5952342b2981515ac700f1212c321cb Mon Sep 17 00:00:00 2001 From: Jacek Generowicz Date: Wed, 20 Jan 2021 15:11:15 +0100 Subject: [PATCH] pythonPackages.pytest-instafail: init at 0.4.2 (#110138) Co-authored-by: Fabian Affolter --- .../pytest-instafail/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-instafail/default.nix diff --git a/pkgs/development/python-modules/pytest-instafail/default.nix b/pkgs/development/python-modules/pytest-instafail/default.nix new file mode 100644 index 00000000000..f9942dd5bcd --- /dev/null +++ b/pkgs/development/python-modules/pytest-instafail/default.nix @@ -0,0 +1,24 @@ +{ buildPythonPackage +, fetchPypi +, lib +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pytest-instafail"; + version = "0.4.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "10lpr6mjcinabqynj6v85bvb1xmapnhqmg50nys1r6hg7zgky9qr"; + }; + + checkInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "pytest_instafail" ]; + meta = { + 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"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.jacg ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 73251207867..8f2d5c92bf2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6033,6 +6033,8 @@ in { pytest-httpbin = callPackage ../development/python-modules/pytest-httpbin { }; + pytest-instafail = callPackage ../development/python-modules/pytest-instafail { }; + pytest-isort = callPackage ../development/python-modules/pytest-isort { }; pytest-lazy-fixture = callPackage ../development/python-modules/pytest-lazy-fixture { };