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

pythonPackages.xlib: 0.17 -> 0.25, enable tests

authored by Robert Schütz and committed by GitHub badca37c 8f9e283f

+16 -7
+1
pkgs/applications/misc/plover/default.nix
··· 16 16 sha256 = "1hdg5491phx6svrxxsxp8v6n4b25y7y4wxw7x3bxlbyhaskgj53r"; 17 17 }; 18 18 19 + nativeBuildInputs = [ setuptools_scm ]; 19 20 buildInputs = [ pytest mock ]; 20 21 propagatedBuildInputs = [ 21 22 six setuptools pyserial appdirs hidapi wxPython xlib wmctrl
+15 -7
pkgs/development/python-modules/xlib/default.nix
··· 3 3 , fetchFromGitHub 4 4 , six 5 5 , setuptools_scm 6 - , pkgs 6 + , xorg 7 + , python 8 + , mock 9 + , nose 10 + , utillinux 7 11 }: 8 12 9 13 buildPythonPackage rec { 10 14 pname = "xlib"; 11 - version = "0.17"; 15 + version = "0.25"; 12 16 13 17 src = fetchFromGitHub { 14 18 owner = "python-xlib"; 15 19 repo = "python-xlib"; 16 - rev = "${version}"; 17 - sha256 = "1iiz2nq2hq9x6laavngvfngnmxbgnwh54wdbq6ncx4va7v98liyi"; 20 + rev = version; 21 + sha256 = "1nncx7v9chmgh56afg6dklz3479s5zg3kq91mzh4mj512y0skyki"; 18 22 }; 19 23 20 - # Tests require `pyutil' so disable them to avoid circular references. 21 - doCheck = false; 24 + checkPhase = '' 25 + ${python.interpreter} runtests.py 26 + ''; 22 27 23 - propagatedBuildInputs = [ six setuptools_scm pkgs.xorg.libX11 ]; 28 + checkInputs = [ mock nose utillinux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ]; 29 + nativeBuildInputs = [ setuptools_scm ]; 30 + buildInputs = [ xorg.libX11 ]; 31 + propagatedBuildInputs = [ six ]; 24 32 25 33 meta = with stdenv.lib; { 26 34 description = "Fully functional X client library for Python programs";