2018-12-02 03:41:15 -08:00
|
|
|
{ stdenv, fetchurl, buildPythonPackage, pkgconfig, glib, gobject-introspection,
|
2018-09-11 13:49:43 -07:00
|
|
|
pycairo, cairo, which, ncurses, meson, ninja, isPy3k, gnome3 }:
|
2014-05-20 04:37:09 -07:00
|
|
|
|
2017-03-21 05:01:17 -07:00
|
|
|
buildPythonPackage rec {
|
2017-11-09 03:26:09 -08:00
|
|
|
pname = "pygobject";
|
2018-12-22 15:04:55 -08:00
|
|
|
version = "3.30.4";
|
2018-09-11 13:49:43 -07:00
|
|
|
|
|
|
|
format = "other";
|
2014-01-05 10:50:03 -08:00
|
|
|
|
2013-05-09 12:11:30 -07:00
|
|
|
src = fetchurl {
|
2018-09-11 13:49:43 -07:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-12-22 15:04:55 -08:00
|
|
|
sha256 = "0hscyvr6hh8l90fyz97b9d03506g3r8s5hl1bgk5aadq8jja3h9d";
|
2013-05-09 12:11:30 -07:00
|
|
|
};
|
|
|
|
|
2016-11-13 14:18:43 -08:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-09-11 13:49:43 -07:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dpython=python${if isPy3k then "3" else "2" }"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig meson ninja ];
|
2018-12-02 03:41:15 -08:00
|
|
|
buildInputs = [ glib gobject-introspection ]
|
2016-08-26 14:18:32 -07:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ which ncurses ];
|
2015-01-21 11:59:57 -08:00
|
|
|
propagatedBuildInputs = [ pycairo cairo ];
|
2013-05-09 12:11:30 -07:00
|
|
|
|
2018-09-11 13:49:43 -07:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "python3.pkgs.${pname}3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-11-25 07:42:23 -08:00
|
|
|
homepage = https://pygobject.readthedocs.io/;
|
2013-05-09 12:11:30 -07:00
|
|
|
description = "Python bindings for Glib";
|
2018-09-11 13:49:43 -07:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
2013-05-09 12:11:30 -07:00
|
|
|
};
|
|
|
|
}
|