2019-07-25 16:05:02 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, virtual-display
|
2020-06-24 20:42:41 +01:00
|
|
|
, isPy27
|
2019-07-25 16:05:02 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-xvfb";
|
2020-06-24 20:42:41 +01:00
|
|
|
version = "2.0.0";
|
|
|
|
disabled = isPy27;
|
2019-07-25 16:05:02 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-24 20:42:41 +01:00
|
|
|
sha256 = "1kyq5rg27dsnj7dc6x9y7r8vwf8rc88y2ppnnw6r96alw0nn9fn4";
|
2019-07-25 16:05:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytest
|
|
|
|
virtual-display
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A pytest plugin to run Xvfb for tests";
|
|
|
|
homepage = "https://github.com/The-Compiler/pytest-xvfb";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
|
|
|
};
|
|
|
|
}
|