depot/third_party/nixpkgs/pkgs/development/python-modules/xlib/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

57 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
six,
setuptools,
setuptools-scm,
xorg,
mock,
pytestCheckHook,
util-linux,
}:
buildPythonPackage rec {
pname = "xlib";
version = "0.33";
pyproject = true;
build-system = [ setuptools ];
src = fetchFromGitHub {
owner = "python-xlib";
repo = "python-xlib";
rev = "refs/tags/${version}";
hash = "sha256-u06OWlMIOUzHOVS4hvm72jGgTSXWUqMvEQd8bTpFog0=";
};
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ xorg.libX11 ];
propagatedBuildInputs = [ six ];
doCheck = !stdenv.isDarwin;
nativeCheckInputs = [
pytestCheckHook
mock
util-linux
xorg.xauth
xorg.xvfb
];
disabledTestPaths = [
# requires x session
"test/test_xlib_display.py"
];
meta = with lib; {
changelog = "https://github.com/python-xlib/python-xlib/releases/tag/${version}";
description = "Fully functional X client library for Python programs";
homepage = "https://github.com/python-xlib/python-xlib";
license = licenses.lgpl21Plus;
maintainers = [ ];
};
}