summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pygobject/3.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pygobject/3.nix')
-rw-r--r--pkgs/development/python-modules/pygobject/3.nix53
1 files changed, 41 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/pygobject/3.nix b/pkgs/development/python-modules/pygobject/3.nix
index 8c26ec6174b2..373577dc4675 100644
--- a/pkgs/development/python-modules/pygobject/3.nix
+++ b/pkgs/development/python-modules/pygobject/3.nix
@@ -1,37 +1,66 @@
-{ lib, stdenv, fetchurl, buildPythonPackage, pkg-config, glib, gobject-introspection,
-pycairo, cairo, which, ncurses, meson, ninja, isPy3k, gnome3 }:
+{ lib
+, stdenv
+, fetchurl
+, buildPythonPackage
+, pkg-config
+, glib
+, gobject-introspection
+, pycairo
+, cairo
+, which
+, ncurses
+, meson
+, ninja
+, isPy3k
+, gnome
+}:
buildPythonPackage rec {
pname = "pygobject";
- version = "3.38.0";
+ version = "3.40.1";
- disabled = ! isPy3k;
+ outputs = [ "out" "dev" ];
+
+ disabled = !isPy3k;
format = "other";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
- sha256 = "A3LRu5Ei/Bn1AKJJsfOMK7Z0hQAPWIdJe0sgWz5whNU=";
+ sha256 = "0d80g5kgf2i9cginyhalvb7ibfk9g30yilqzmcsw6h6byj8xbih0";
};
- outputs = [ "out" "dev" ];
+ nativeBuildInputs = [
+ pkg-config
+ meson
+ ninja
+ gobject-introspection
+ ];
+
+ buildInputs = [
+ glib
+ gobject-introspection
+ ] ++ lib.optionals stdenv.isDarwin [
+ ncurses
+ ];
- nativeBuildInputs = [ pkg-config meson ninja gobject-introspection ];
- buildInputs = [ glib gobject-introspection ]
- ++ lib.optionals stdenv.isDarwin [ which ncurses ];
- propagatedBuildInputs = [ pycairo cairo ];
+ propagatedBuildInputs = [
+ pycairo
+ cairo
+ ];
passthru = {
- updateScript = gnome3.updateScript {
+ updateScript = gnome.updateScript {
packageName = pname;
attrPath = "python3.pkgs.${pname}3";
+ versionPolicy = "odd-unstable";
};
};
meta = with lib; {
homepage = "https://pygobject.readthedocs.io/";
description = "Python bindings for Glib";
- license = licenses.gpl2;
+ license = licenses.lgpl21Plus;
maintainers = with maintainers; [ jtojnar ];
platforms = platforms.unix;
};