1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 12:59:25 +00:00
nixpkgs/pkgs/development/python-modules/pytest-rerunfailures/default.nix

29 lines
718 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, pythonOlder, fetchPypi, pytest, mock }:
2018-01-09 17:08:02 +00:00
buildPythonPackage rec {
pname = "pytest-rerunfailures";
version = "9.1.1";
2018-01-09 17:08:02 +00:00
disabled = pythonOlder "3.5";
2018-01-09 17:08:02 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "1cb11a17fc121b3918414eb5eaf314ee325f2e693ac7cb3f6abf7560790827f2";
2018-01-09 17:08:02 +00:00
};
checkInputs = [ mock pytest ];
2018-01-09 17:08:02 +00:00
propagatedBuildInputs = [ pytest ];
2018-01-09 17:08:02 +00:00
checkPhase = ''
py.test test_pytest_rerunfailures.py
2018-01-09 17:08:02 +00:00
'';
meta = with stdenv.lib; {
description = "pytest plugin to re-run tests to eliminate flaky failures";
homepage = "https://github.com/pytest-dev/pytest-rerunfailures";
2018-01-09 17:08:02 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ das-g ];
2018-01-09 17:08:02 +00:00
};
}