mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
42 lines
849 B
Nix
42 lines
849 B
Nix
{ lib, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, six
|
|
, setuptools-scm
|
|
, xorg
|
|
, python
|
|
, mock
|
|
, nose
|
|
, util-linux
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xlib";
|
|
version = "0.29";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-xlib";
|
|
repo = "python-xlib";
|
|
rev = version;
|
|
sha256 = "sha256-zOG1QzRa5uN36Ngv8i5s3mq+VIoRzxFj5ltUbKdonJ0=";
|
|
};
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} runtests.py
|
|
'';
|
|
|
|
checkInputs = [ mock nose util-linux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ];
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
buildInputs = [ xorg.libX11 ];
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
meta = with lib; {
|
|
description = "Fully functional X client library for Python programs";
|
|
homepage = "http://python-xlib.sourceforge.net/";
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
|
|
}
|