1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
replaceVars,
xorg,
# build-system
setuptools,
# tests
easyprocess,
entrypoint2,
pillow,
psutil,
pytest-timeout,
pytest-xdist,
pytestCheckHook,
vncdo,
}:
buildPythonPackage rec {
pname = "pyvirtualdisplay";
version = "3.0";
pyproject = true;
src = fetchPypi {
pname = "PyVirtualDisplay";
inherit version;
hash = "sha256-CXVbw86263JfsH7KVCX0PyNY078I4A0qm3kqGu3RYVk=";
};
patches = lib.optionals stdenv.hostPlatform.isLinux [
(replaceVars ./paths.patch {
xauth = lib.getExe xorg.xauth;
xdpyinfo = lib.getExe xorg.xdpyinfo;
})
];
build-system = [ setuptools ];
doCheck = stdenv.hostPlatform.isLinux;
nativeCheckInputs = [
easyprocess
entrypoint2
pillow
psutil
pytest-timeout
pytestCheckHook
(vncdo.overridePythonAttrs { doCheck = false; })
xorg.xorgserver
xorg.xmessage
xorg.xvfb
];
pytestFlags = [ "-v" ];
meta = {
description = "Python wrapper for Xvfb, Xephyr and Xvnc";
homepage = "https://github.com/ponty/pyvirtualdisplay";
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ layus ];
};
}
|