blob: a24b9fe21a6a40aee108ceeebb40d0b2a302f7c8 (
plain) (
blame)
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
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
six,
setuptools,
setuptools-scm,
xorg,
mock,
pytestCheckHook,
util-linux,
}:
buildPythonPackage rec {
pname = "xlib";
version = "0.33";
pyproject = true;
build-system = [ setuptools ];
src = fetchFromGitHub {
owner = "python-xlib";
repo = "python-xlib";
rev = "refs/tags/${version}";
hash = "sha256-u06OWlMIOUzHOVS4hvm72jGgTSXWUqMvEQd8bTpFog0=";
};
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ xorg.libX11 ];
propagatedBuildInputs = [ six ];
doCheck = !stdenv.isDarwin;
nativeCheckInputs = [
pytestCheckHook
mock
util-linux
xorg.xauth
xorg.xvfb
];
disabledTestPaths = [
# requires x session
"test/test_xlib_display.py"
];
meta = with lib; {
changelog = "https://github.com/python-xlib/python-xlib/releases/tag/${version}";
description = "Fully functional X client library for Python programs";
homepage = "https://github.com/python-xlib/python-xlib";
license = licenses.lgpl21Plus;
maintainers = [ ];
};
}
|