From 7b920172dbd64f27e34568605a4894981158c65e Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 8 Aug 2018 15:32:52 -0400 Subject: [PATCH] pythonPackages.pytest-repeat: init at 0.6.0 - compatible with 2.7, 3+ - all tests pass and running --- .../python-modules/pytest-repeat/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-repeat/default.nix 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 { };