Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, setuptools 6, packaging 7, pytest 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-rerunfailures"; 13 version = "11.1.2"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-VWEWYehz8cr6OEyC8I0HiDlU9LdkNfS4pbRwwZVFc94="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 buildInputs = [ pytest ]; 26 propagatedBuildInputs = [ packaging ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 meta = with lib; { 31 description = "Pytest plugin to re-run tests to eliminate flaky failures"; 32 homepage = "https://github.com/pytest-dev/pytest-rerunfailures"; 33 license = licenses.mpl20; 34 maintainers = with maintainers; [ das-g ]; 35 }; 36}