1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytest, 6 pyvirtualdisplay, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-xvfb"; 13 version = "3.1.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.9"; 17 18 src = fetchPypi { 19 pname = "pytest_xvfb"; 20 inherit version; 21 hash = "sha256-kFk2NEJ9l0snLoRXk+RTP1uCfJ2EwFGHkBNiRQQXXkQ="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 buildInputs = [ pytest ]; 27 28 dependencies = [ pyvirtualdisplay ]; 29 30 meta = with lib; { 31 description = "Pytest plugin to run Xvfb for tests"; 32 homepage = "https://github.com/The-Compiler/pytest-xvfb"; 33 changelog = "https://github.com/The-Compiler/pytest-xvfb/blob/v${version}/CHANGELOG.rst"; 34 license = licenses.mit; 35 maintainers = [ ]; 36 }; 37}