2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, buildPythonPackage, pkg-config, 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";
|
2020-09-21 03:21:46 +01:00
|
|
|
version = "3.38.0";
|
|
|
|
|
|
|
|
disabled = ! isPy3k;
|
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 {
|
2021-01-24 00:29:22 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-09-21 03:21:46 +01:00
|
|
|
sha256 = "A3LRu5Ei/Bn1AKJJsfOMK7Z0hQAPWIdJe0sgWz5whNU=";
|
2013-05-09 20:11:30 +01:00
|
|
|
};
|
|
|
|
|
2016-11-13 22:18:43 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja gobject-introspection ];
|
2018-12-02 11:41:15 +00:00
|
|
|
buildInputs = [ glib gobject-introspection ]
|
2021-01-24 00:29:22 +00:00
|
|
|
++ 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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01: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
|
|
|
};
|
|
|
|
}
|