Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pygobject / 3.nix
blob8c26ec6174b26ce4aa15108cb9a9e4c1db5604d3
1 { lib, stdenv, fetchurl, buildPythonPackage, pkg-config, glib, gobject-introspection,
2 pycairo, cairo, which, ncurses, meson, ninja, isPy3k, gnome3 }:
4 buildPythonPackage rec {
5   pname = "pygobject";
6   version = "3.38.0";
8   disabled = ! isPy3k;
10   format = "other";
12   src = fetchurl {
13     url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
14     sha256 = "A3LRu5Ei/Bn1AKJJsfOMK7Z0hQAPWIdJe0sgWz5whNU=";
15   };
17   outputs = [ "out" "dev" ];
19   nativeBuildInputs = [ pkg-config meson ninja gobject-introspection ];
20   buildInputs = [ glib gobject-introspection ]
21                  ++ lib.optionals stdenv.isDarwin [ which ncurses ];
22   propagatedBuildInputs = [ pycairo cairo ];
24   passthru = {
25     updateScript = gnome3.updateScript {
26       packageName = pname;
27       attrPath = "python3.pkgs.${pname}3";
28     };
29   };
31   meta = with lib; {
32     homepage = "https://pygobject.readthedocs.io/";
33     description = "Python bindings for Glib";
34     license = licenses.gpl2;
35     maintainers = with maintainers; [ jtojnar ];
36     platforms = platforms.unix;
37   };