mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
six,
|
|
setuptools_80,
|
|
setuptools-scm,
|
|
libx11,
|
|
xvfb,
|
|
xauth,
|
|
mock,
|
|
pytestCheckHook,
|
|
util-linux,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xlib";
|
|
version = "0.33";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-xlib";
|
|
repo = "python-xlib";
|
|
tag = version;
|
|
hash = "sha256-u06OWlMIOUzHOVS4hvm72jGgTSXWUqMvEQd8bTpFog0=";
|
|
};
|
|
|
|
build-system = [
|
|
(setuptools-scm.override { setuptools = setuptools_80; })
|
|
];
|
|
|
|
buildInputs = [ libx11 ];
|
|
|
|
dependencies = [ six ];
|
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
mock
|
|
util-linux
|
|
xauth
|
|
xvfb
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# requires x session
|
|
"test/test_xlib_display.py"
|
|
];
|
|
|
|
meta = {
|
|
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 = lib.licenses.lgpl21Plus;
|
|
maintainers = [ ];
|
|
};
|
|
}
|