depot/third_party/nixpkgs/pkgs/development/python-modules/xlib/default.nix
Default email c6ca5b8f13 Project import generated by Copybara.
GitOrigin-RevId: e4d49de45a3b5dbcb881656b4e3986e666141ea9
2022-07-18 18:21:45 +02:00

54 lines
967 B
Nix

{ lib, stdenv
, buildPythonPackage
, fetchFromGitHub
, six
, setuptools-scm
, xorg
, python
, mock
, nose
, pytestCheckHook
, util-linux
}:
buildPythonPackage rec {
pname = "xlib";
version = "0.31";
src = fetchFromGitHub {
owner = "python-xlib";
repo = "python-xlib";
rev = version;
sha256 = "155p9xhsk01z9vdml74h07svlqy6gljnx9c6qbydcr14lwghwn06";
};
patches = [
./fix-no-protocol-specified.patch
];
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ xorg.libX11 ];
propagatedBuildInputs = [ six ];
doCheck = !stdenv.isDarwin;
checkInputs = [
pytestCheckHook
mock
nose
util-linux
xorg.xauth
xorg.xorgserver
];
disabledTestPaths = [
# requires x session
"test/test_xlib_display.py"
];
meta = with lib; {
description = "Fully functional X client library for Python programs";
homepage = "http://python-xlib.sourceforge.net/";
license = licenses.gpl2Plus;
};
}