summary refs log blame commit diff
path: root/pkgs/development/python-modules/pytest-rerunfailures/default.nix
blob: 9c906fe2fa4a37beead739fdf348b5d19413854f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                        







                                                                    
                                









                                                                               

    
{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:

buildPythonPackage rec {
  pname = "pytest-rerunfailures";
  version = "4.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "18lpy6d9b4ck8j3jwh4vmxj54is0fwanpmpg70qg4y0fycdqzwks";
  };

  checkInputs = [ pytest mock ];

  checkPhase = ''
    py.test
  '';

  meta = with stdenv.lib; {
    description = "pytest plugin to re-run tests to eliminate flaky failures.";
    homepage = https://github.com/pytest-dev/pytest-rerunfailures;
    license = licenses.mpl20;
    maintainers = with maintainers; [ jgeerds ];
  };
}