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";
|
2020-03-13 12:44:09 -07:00
|
|
|
version = "3.36.0";
|
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";
|
2020-03-13 12:44:09 -07:00
|
|
|
sha256 = "hoPS37W6qeUBqaZO66XCwRF+rbeBqxzXqdJVg0r22u8=";
|
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" }"
|
|
|
|
];
|
|
|
|
|
2019-01-05 02:54:27 -08:00
|
|
|
nativeBuildInputs = [ pkgconfig meson ninja gobject-introspection ];
|
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; {
|
2020-03-31 18:11:51 -07: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
|
|
|
};
|
|
|
|
}
|