diff --git a/pkgs/development/python-modules/pytest-repeat/default.nix b/pkgs/development/python-modules/pytest-repeat/default.nix new file mode 100644 index 00000000000..eca14c8289a --- /dev/null +++ b/pkgs/development/python-modules/pytest-repeat/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, fetchPypi +, setuptools_scm +, pytest +}: + +buildPythonPackage rec { + pname = "pytest-repeat"; + version = "0.6.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "84aba2fcca5dc2f32ae626a01708f469f17b3384ec3d1f507698077f274909d6"; + }; + + buildInputs = [ setuptools_scm pytest ]; + + checkPhase = '' + py.test + ''; + + meta = { + description = "Pytest plugin for repeating tests"; + homepage = https://github.com/pytest-dev/pytest-repeat; + maintainers = with lib.maintainers; [ costrouc ]; + license = lib.licenses.mpl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 26b31958c32..fb86b350cc7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1913,6 +1913,8 @@ in { pytest-raisesregexp = callPackage ../development/python-modules/pytest-raisesregexp { }; + pytest-repeat = callPackage ../development/python-modules/pytest-repeat { }; + pytestrunner = callPackage ../development/python-modules/pytestrunner { }; pytestquickcheck = callPackage ../development/python-modules/pytest-quickcheck { };