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