1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00
nixpkgs/pkgs/development/python-modules/xlib/default.nix
Matthew Bauer b1de8cf480 treewide: disable tests on darwin
- tthsum
- python-papis
- python-sqlalchemy-migrate
- python-xlib
- dub
2019-04-26 21:55:05 -04:00

42 lines
848 B
Nix

{ stdenv
, buildPythonPackage
, fetchFromGitHub
, six
, setuptools_scm
, xorg
, python
, mock
, nose
, utillinux
}:
buildPythonPackage rec {
pname = "xlib";
version = "0.25";
src = fetchFromGitHub {
owner = "python-xlib";
repo = "python-xlib";
rev = version;
sha256 = "1nncx7v9chmgh56afg6dklz3479s5zg3kq91mzh4mj512y0skyki";
};
checkPhase = ''
${python.interpreter} runtests.py
'';
checkInputs = [ mock nose utillinux /* mcookie */ xorg.xauth xorg.xorgserver /* xvfb */ ];
nativeBuildInputs = [ setuptools_scm ];
buildInputs = [ xorg.libX11 ];
propagatedBuildInputs = [ six ];
doCheck = !stdenv.isDarwin;
meta = with stdenv.lib; {
description = "Fully functional X client library for Python programs";
homepage = http://python-xlib.sourceforge.net/;
license = licenses.gpl2Plus;
};
}