pygtk: compatibility with pango 1.44

* Removes an unused binding that prevents compilation with newer pango
* Adds a patch to fix a memory leak
This commit is contained in:
Dima 2019-11-29 01:46:10 +01:00
parent e603d2941a
commit 1a33f39d91

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, pkgconfig, gtk2, pygobject2, pycairo, pango
{ stdenv, fetchurl, fetchpatch, python, pkgconfig, gtk2, pygobject2, pycairo, pango
, buildPythonPackage, libglade ? null, isPy3k }:
buildPythonPackage rec {
@ -12,6 +12,18 @@ buildPythonPackage rec {
sha256 = "04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d";
};
patches = [
# https://bugzilla.gnome.org/show_bug.cgi?id=660216 - fixes some memory leaks
(fetchpatch {
url = "https://gitlab.gnome.org/Archive/pygtk/commit/eca72baa5616fbe4dbebea43c7e5940847dc5ab8.diff";
sha256 = "031px4w5cshcx1sns430sdbr2i007b9zyb2carb3z65nzr77dpdd";
})
(fetchpatch {
url = "https://gitlab.gnome.org/Archive/pygtk/commit/4aaa48eb80c6802aec6d03e5695d2a0ff20e0fc2.patch";
sha256 = "0z8cg7nr3qki8gg8alasdzzyxcihfjlxn518glq5ajglk3q5pzsn";
})
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
pango