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