summary refs log tree commit diff
path: root/pkgs/development/python-modules/libsexy/default.nix
blob: b94d6d697972529ef9b3d899f15e5bea4008940b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
a :  
let 
  fetchurl = a.fetchurl;

  version = a.lib.getAttr ["version"] "0.1.9" a; 
  buildInputs = with a; [
    pkgconfig pygtk
  ];
  propagatedBuildInputs = with a; [
    libsexy python gtk glib pango libxml2
  ];
in
rec {
  src = fetchurl {
    url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz";
    sha256 = "05bgcsxwkp63rlr8wg6znd46cfbhrzc5wh70jabsi654pxxjb39d";
  };

  inherit buildInputs propagatedBuildInputs;
  configureFlags = [];

  /* doConfigure should be removed if not needed */
  phaseNames = ["doConfigure" "doMakeInstall" "postInstall"];
  postInstall = a.fullDepEntry (''
    ln -s $out/lib/python*/site-packages/gtk-2.0/* $out/lib/python*/site-packages/
  '') ["minInit"];

  name = "python-libsexy-" + version;
  meta = {
    description = "Python libsexy bindings";
  };
}