Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 727 B view raw
1{ stdenv, fetchurl, buildPythonPackage, libsexy, pkgconfig, libxml2, pygtk, pango, gtk2, glib }: 2 3buildPythonPackage rec { 4 pname = "libsexy"; 5 name = "${pname}-${version}"; 6 version = "0.1.9"; 7 format = "other"; 8 9 src = fetchurl { 10 url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz"; 11 sha256 = "05bgcsxwkp63rlr8wg6znd46cfbhrzc5wh70jabsi654pxxjb39d"; 12 }; 13 14 buildInputs = [ pkgconfig ]; 15 16 propagatedBuildInputs = [ 17 pygtk libsexy gtk2 glib pango libxml2 18 ]; 19 20 postInstall = '' 21 ln -s $out/lib/python*/site-packages/gtk-2.0/* $out/lib/python*/site-packages/ 22 ''; 23 24 meta = { 25 description = "Python libsexy bindings"; 26 platforms = stdenv.lib.platforms.linux; 27 }; 28}