1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytest,
6 pyvirtualdisplay,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-xvfb";
12 version = "3.0.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-N0arH00RWfA/dRY40FNonM0oQpGzi4+wPT67579pz8A=";
20 };
21
22 buildInputs = [ pytest ];
23
24 propagatedBuildInputs = [ pyvirtualdisplay ];
25
26 meta = with lib; {
27 description = "A pytest plugin to run Xvfb for tests";
28 homepage = "https://github.com/The-Compiler/pytest-xvfb";
29 changelog = "https://github.com/The-Compiler/pytest-xvfb/blob/v${version}/CHANGELOG.rst";
30 license = licenses.mit;
31 maintainers = with maintainers; [ ];
32 };
33}