at 23.05-pre 967 B view raw
1{ lib, stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, six 5, setuptools-scm 6, xorg 7, python 8, mock 9, nose 10, pytestCheckHook 11, util-linux 12}: 13 14buildPythonPackage rec { 15 pname = "xlib"; 16 version = "0.31"; 17 18 src = fetchFromGitHub { 19 owner = "python-xlib"; 20 repo = "python-xlib"; 21 rev = version; 22 sha256 = "155p9xhsk01z9vdml74h07svlqy6gljnx9c6qbydcr14lwghwn06"; 23 }; 24 25 patches = [ 26 ./fix-no-protocol-specified.patch 27 ]; 28 29 nativeBuildInputs = [ setuptools-scm ]; 30 buildInputs = [ xorg.libX11 ]; 31 propagatedBuildInputs = [ six ]; 32 33 doCheck = !stdenv.isDarwin; 34 checkInputs = [ 35 pytestCheckHook 36 mock 37 nose 38 util-linux 39 xorg.xauth 40 xorg.xorgserver 41 ]; 42 43 disabledTestPaths = [ 44 # requires x session 45 "test/test_xlib_display.py" 46 ]; 47 48 meta = with lib; { 49 description = "Fully functional X client library for Python programs"; 50 homepage = "http://python-xlib.sourceforge.net/"; 51 license = licenses.gpl2Plus; 52 }; 53 54}