1 { lib, stdenv, fetchurl, buildPythonPackage, pkg-config, glib, gobject-introspection,
2 pycairo, cairo, which, ncurses, meson, ninja, isPy3k, gnome3 }:
4 buildPythonPackage rec {
11 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
12 sha256 = "0b9CgC0c7BE7Wtqg579/N0W0RSHcIWNYjSdtXNYdcY8=";
15 outputs = [ "out" "dev" ];
18 "-Dpython=python${if isPy3k then "3" else "2" }"
21 nativeBuildInputs = [ pkg-config meson ninja gobject-introspection ];
22 buildInputs = [ glib gobject-introspection ]
23 ++ lib.optionals stdenv.isDarwin [ which ncurses ];
24 propagatedBuildInputs = [ pycairo cairo ];
27 updateScript = gnome3.updateScript {
29 attrPath = "python3.pkgs.${pname}3";
34 homepage = "https://pygobject.readthedocs.io/";
35 description = "Python bindings for Glib";
36 license = licenses.gpl2;
37 maintainers = with maintainers; [ orivej ];
38 platforms = platforms.unix;