2018-10-29 13:50:45 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, six
|
|
|
|
, setuptools_scm
|
2019-03-14 04:58:01 +00:00
|
|
|
, xorg
|
|
|
|
, python
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, utillinux
|
2018-10-29 13:50:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xlib";
|
2020-09-21 16:26:38 +01:00
|
|
|
version = "0.28";
|
2018-10-29 13:50:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-xlib";
|
|
|
|
repo = "python-xlib";
|
2019-03-14 04:58:01 +00:00
|
|
|
rev = version;
|
2020-09-21 16:26:38 +01:00
|
|
|
sha256 = "13551vi65034pjf2g7zkw5dyjqcjfyk32a640g5jr055ssf0bjkc";
|
2018-10-29 13:50:45 +00:00
|
|
|
};
|
|
|
|
|
2019-03-14 04:58:01 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} runtests.py
|
|
|
|
'';
|
2018-10-29 13:50:45 +00:00
|
|
|
|
2019-03-14 04:58:01 +00:00
|
|
|
checkInputs = [ mock nose utillinux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ];
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
buildInputs = [ xorg.libX11 ];
|
|
|
|
propagatedBuildInputs = [ six ];
|
2018-10-29 13:50:45 +00:00
|
|
|
|
2019-04-23 03:49:34 +01:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2018-10-29 13:50:45 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Fully functional X client library for Python programs";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://python-xlib.sourceforge.net/";
|
2018-10-29 13:50:45 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|