2021-03-21 01:28:50 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, pycairo
|
|
|
|
, cairo
|
|
|
|
, which
|
|
|
|
, ncurses
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, isPy3k
|
2021-05-07 22:18:14 +01:00
|
|
|
, gnome
|
2021-03-21 01:28:50 +00:00
|
|
|
}:
|
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";
|
2021-03-21 01:28:50 +00:00
|
|
|
version = "3.40.1";
|
2020-09-21 03:21:46 +01:00
|
|
|
|
2021-03-21 01:28:50 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
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";
|
2021-03-21 01:28:50 +00:00
|
|
|
sha256 = "0d80g5kgf2i9cginyhalvb7ibfk9g30yilqzmcsw6h6byj8xbih0";
|
2013-05-09 20:11:30 +01:00
|
|
|
};
|
|
|
|
|
2021-03-21 01:28:50 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gobject-introspection
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
ncurses
|
|
|
|
];
|
2016-11-13 22:18:43 +00:00
|
|
|
|
2021-03-21 01:28:50 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pycairo
|
|
|
|
cairo
|
|
|
|
];
|
2013-05-09 20:11:30 +01:00
|
|
|
|
2018-09-11 21:49:43 +01:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-09-11 21:49:43 +01:00
|
|
|
packageName = pname;
|
|
|
|
attrPath = "python3.pkgs.${pname}3";
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-09-11 21:49:43 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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";
|
2021-03-21 01:28:50 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2018-09-11 21:49:43 +01:00
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
2013-05-09 20:11:30 +01:00
|
|
|
};
|
|
|
|
}
|