1a @ { python, libsexy, pkgconfig, libxml2, pygtk, pango, gtk, glib, ... } :
2let
3 fetchurl = a.fetchurl;
4
5 version = a.lib.attrByPath ["version"] "0.1.9" a;
6 buildInputs = with a; [
7 pkgconfig pygtk
8 ];
9 propagatedBuildInputs = with a; [
10 libsexy python gtk glib pango libxml2
11 ];
12in
13rec {
14 src = fetchurl {
15 url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz";
16 sha256 = "05bgcsxwkp63rlr8wg6znd46cfbhrzc5wh70jabsi654pxxjb39d";
17 };
18
19 inherit buildInputs propagatedBuildInputs;
20 configureFlags = [];
21
22 /* doConfigure should be removed if not needed */
23 phaseNames = ["doConfigure" "doMakeInstall" "postInstall"];
24 postInstall = a.fullDepEntry (''
25 ln -s $out/lib/python*/site-packages/gtk-2.0/* $out/lib/python*/site-packages/
26 '') ["minInit"];
27
28 name = "python-libsexy-" + version;
29 meta = {
30 description = "Python libsexy bindings";
31 };
32}