2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv
|
2018-10-29 06:50:45 -07:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, six
|
|
|
|
, setuptools_scm
|
2019-03-13 21:58:01 -07:00
|
|
|
, xorg
|
|
|
|
, python
|
|
|
|
, mock
|
|
|
|
, nose
|
2020-11-24 07:29:28 -08:00
|
|
|
, util-linux
|
2018-10-29 06:50:45 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "xlib";
|
2021-01-06 14:29:01 -08:00
|
|
|
version = "0.29";
|
2018-10-29 06:50:45 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-xlib";
|
|
|
|
repo = "python-xlib";
|
2019-03-13 21:58:01 -07:00
|
|
|
rev = version;
|
2021-01-06 14:29:01 -08:00
|
|
|
sha256 = "sha256-zOG1QzRa5uN36Ngv8i5s3mq+VIoRzxFj5ltUbKdonJ0=";
|
2018-10-29 06:50:45 -07:00
|
|
|
};
|
|
|
|
|
2019-03-13 21:58:01 -07:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} runtests.py
|
|
|
|
'';
|
2018-10-29 06:50:45 -07:00
|
|
|
|
2020-11-24 07:29:28 -08:00
|
|
|
checkInputs = [ mock nose util-linux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ];
|
2019-03-13 21:58:01 -07:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
buildInputs = [ xorg.libX11 ];
|
|
|
|
propagatedBuildInputs = [ six ];
|
2018-10-29 06:50:45 -07:00
|
|
|
|
2019-04-22 19:49:34 -07:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-10-29 06:50:45 -07:00
|
|
|
description = "Fully functional X client library for Python programs";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://python-xlib.sourceforge.net/";
|
2018-10-29 06:50:45 -07:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|