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