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