2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, six
|
|
|
|
, setuptools_scm
|
|
|
|
, xorg
|
|
|
|
, python
|
|
|
|
, mock
|
|
|
|
, nose
|
2020-11-24 20:58:05 +00:00
|
|
|
, util-linux
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xlib";
|
2021-01-09 10:05:03 +00:00
|
|
|
version = "0.29";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-xlib";
|
|
|
|
repo = "python-xlib";
|
|
|
|
rev = version;
|
2021-01-09 10:05:03 +00:00
|
|
|
sha256 = "sha256-zOG1QzRa5uN36Ngv8i5s3mq+VIoRzxFj5ltUbKdonJ0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} runtests.py
|
|
|
|
'';
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
checkInputs = [ mock nose util-linux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
buildInputs = [ xorg.libX11 ];
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fully functional X client library for Python programs";
|
|
|
|
homepage = "http://python-xlib.sourceforge.net/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|