pythonPackages.xlib: 0.17 -> 0.25, enable tests
https://github.com/python-xlib/python-xlib/releases/tag/0.25 (and the releases along the way)
This commit is contained in:
parent
92ec809473
commit
5a302b2005
@ -3,24 +3,32 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, six
|
, six
|
||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
, pkgs
|
, xorg
|
||||||
|
, python
|
||||||
|
, mock
|
||||||
|
, nose
|
||||||
|
, utillinux
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "xlib";
|
pname = "xlib";
|
||||||
version = "0.17";
|
version = "0.25";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "python-xlib";
|
owner = "python-xlib";
|
||||||
repo = "python-xlib";
|
repo = "python-xlib";
|
||||||
rev = "${version}";
|
rev = version;
|
||||||
sha256 = "1iiz2nq2hq9x6laavngvfngnmxbgnwh54wdbq6ncx4va7v98liyi";
|
sha256 = "1nncx7v9chmgh56afg6dklz3479s5zg3kq91mzh4mj512y0skyki";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Tests require `pyutil' so disable them to avoid circular references.
|
checkPhase = ''
|
||||||
doCheck = false;
|
${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; {
|
meta = with stdenv.lib; {
|
||||||
description = "Fully functional X client library for Python programs";
|
description = "Fully functional X client library for Python programs";
|
||||||
|
Loading…
Reference in New Issue
Block a user