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";
|
2019-03-14 04:58:01 +00:00
|
|
|
version = "0.25";
|
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;
|
|
|
|
sha256 = "1nncx7v9chmgh56afg6dklz3479s5zg3kq91mzh4mj512y0skyki";
|
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 02:49:34 +00: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";
|
|
|
|
homepage = http://python-xlib.sourceforge.net/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|