Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 681 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, six 5, setuptools_scm 6, pkgs 7}: 8 9buildPythonPackage 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"; 27 homepage = http://python-xlib.sourceforge.net/; 28 license = licenses.gpl2Plus; 29 }; 30 31}