depot/third_party/nixpkgs/pkgs/development/python-modules/xlib/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

41 lines
850 B
Nix

{ stdenv
, buildPythonPackage
, fetchFromGitHub
, six
, setuptools_scm
, xorg
, python
, mock
, nose
, utillinux
}:
buildPythonPackage rec {
pname = "xlib";
version = "0.28";
src = fetchFromGitHub {
owner = "python-xlib";
repo = "python-xlib";
rev = version;
sha256 = "13551vi65034pjf2g7zkw5dyjqcjfyk32a640g5jr055ssf0bjkc";
};
checkPhase = ''
${python.interpreter} runtests.py
'';
checkInputs = [ mock nose utillinux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ];
nativeBuildInputs = [ setuptools_scm ];
buildInputs = [ xorg.libX11 ];
propagatedBuildInputs = [ six ];
doCheck = !stdenv.isDarwin;
meta = with stdenv.lib; {
description = "Fully functional X client library for Python programs";
homepage = "http://python-xlib.sourceforge.net/";
license = licenses.gpl2Plus;
};
}