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