summary refs log tree commit diff
path: root/pkgs/development/python-modules/libsexy/default.nix
blob: cdf5a73768d4d89a63300f81db689c3035d66b46 (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
{ stdenv, fetchurl, buildPythonPackage, libsexy, pkgconfig, libxml2, pygtk, pango, gtk, glib, }:

stdenv.mkDerivation rec {
  name = "python-libsexy-${version}";
  version = "0.1.9";

  src = fetchurl {
    url = "http://releases.chipx86.com/libsexy/sexy-python/sexy-python-${version}.tar.gz";
    sha256 = "05bgcsxwkp63rlr8wg6znd46cfbhrzc5wh70jabsi654pxxjb39d";
  };

  buildInputs = [
    pkgconfig pygtk
  ];

  propagatedBuildInputs = [
    libsexy gtk glib pango libxml2
  ];

  postInstall = ''
    ln -s $out/lib/python*/site-packages/gtk-2.0/* $out/lib/python*/site-packages/
  '';

  meta = {
    description = "Python libsexy bindings";
    platforms = stdenv.lib.platforms.linux;
  };
}