Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions pkgs/development/python-modules/pygobject/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
{ stdenv, fetchurl, python, pkgconfig, glib }:
{ stdenv, fetchurl, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo }:

stdenv.mkDerivation rec {
name = "pygobject-2.28.6";
name = "pygobject-3.0.4";

src = fetchurl {
url = "http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/${name}.tar.xz";
sha256 = "1f5dfxjnil2glfwxnqr14d2cjfbkghsbsn8n04js2c2icr7iv2pv";
url = "http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.0/${name}.tar.xz";
sha256 = "f457b1d7f6b8bfa727593c3696d2b405da66b4a8d34cd7d3362ebda1221f0661";
};

configureFlags = "--disable-introspection";

buildInputs = [ python pkgconfig glib ];

# in a "normal" setup, pygobject and pygtk are installed into the
# same site-packages: we need a pth file for both. pygtk.py would be
# used to select a specific version, in our setup it should have no
# effect, but we leave it in case somebody expects and calls it.
postInstall = ''
mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${name}.pth}
'';
buildInputs = [ python pkgconfig glib gobjectIntrospection pycairo cairo ];

meta = {
homepage = http://live.gnome.org/PyGObject;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ pythonPackages = python.modules // rec {
};

pygobject = import ../development/python-modules/pygobject {
inherit (pkgs) stdenv fetchurl pkgconfig glib;
inherit python;
inherit (pkgs) stdenv fetchurl pkgconfig glib gobjectIntrospection cairo;
inherit python pycairo;
};

pygtk = import ../development/python-modules/pygtk {
Expand Down