Merge pull request #57621 from dtzWill/update/pyxlib-0.25

pythonPackages.xlib: 0.17 -> 0.25, enable tests
This commit is contained in:
Robert Schütz 2019-03-14 18:20:46 +01:00 committed by GitHub
commit badca37c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 7 deletions

View File

@ -16,6 +16,7 @@
sha256 = "1hdg5491phx6svrxxsxp8v6n4b25y7y4wxw7x3bxlbyhaskgj53r";
};
nativeBuildInputs = [ setuptools_scm ];
buildInputs = [ pytest mock ];
propagatedBuildInputs = [
six setuptools pyserial appdirs hidapi wxPython xlib wmctrl

View File

@ -3,24 +3,32 @@
, fetchFromGitHub
, six
, setuptools_scm
, pkgs
, xorg
, python
, mock
, nose
, utillinux
}:
buildPythonPackage rec {
pname = "xlib";
version = "0.17";
version = "0.25";
src = fetchFromGitHub {
owner = "python-xlib";
repo = "python-xlib";
rev = "${version}";
sha256 = "1iiz2nq2hq9x6laavngvfngnmxbgnwh54wdbq6ncx4va7v98liyi";
rev = version;
sha256 = "1nncx7v9chmgh56afg6dklz3479s5zg3kq91mzh4mj512y0skyki";
};
# Tests require `pyutil' so disable them to avoid circular references.
doCheck = false;
checkPhase = ''
${python.interpreter} runtests.py
'';
propagatedBuildInputs = [ six setuptools_scm pkgs.xorg.libX11 ];
checkInputs = [ mock nose utillinux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ];
nativeBuildInputs = [ setuptools_scm ];
buildInputs = [ xorg.libX11 ];
propagatedBuildInputs = [ six ];
meta = with stdenv.lib; {
description = "Fully functional X client library for Python programs";