at 24.11-pre 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchFromGitHub, 6 six, 7 setuptools-scm, 8 xorg, 9 python, 10 mock, 11 nose, 12 pytestCheckHook, 13 util-linux, 14}: 15 16buildPythonPackage rec { 17 pname = "xlib"; 18 version = "0.33"; 19 format = "setuptools"; 20 21 src = fetchFromGitHub { 22 owner = "python-xlib"; 23 repo = "python-xlib"; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-u06OWlMIOUzHOVS4hvm72jGgTSXWUqMvEQd8bTpFog0="; 26 }; 27 28 nativeBuildInputs = [ setuptools-scm ]; 29 30 buildInputs = [ xorg.libX11 ]; 31 32 propagatedBuildInputs = [ six ]; 33 34 doCheck = !stdenv.isDarwin; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 mock 39 nose 40 util-linux 41 xorg.xauth 42 xorg.xorgserver 43 ]; 44 45 disabledTestPaths = [ 46 # requires x session 47 "test/test_xlib_display.py" 48 ]; 49 50 meta = with lib; { 51 changelog = "https://github.com/python-xlib/python-xlib/releases/tag/${version}"; 52 description = "Fully functional X client library for Python programs"; 53 homepage = "https://github.com/python-xlib/python-xlib"; 54 license = licenses.lgpl21Plus; 55 maintainers = with maintainers; [ ]; 56 }; 57}