python2Packages.pygobject2: move to python2-modules

This commit is contained in:
Robert Schütz 2022-12-09 12:26:58 -08:00 committed by Sandro Jäckel
parent c760e71626
commit 5efd8de503
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
4 changed files with 6 additions and 5 deletions

View file

@ -7,7 +7,7 @@ buildPythonPackage rec {
disabled = pythonAtLeast "3.9";
src = fetchurl {
url = "mirror://gnome/sources/pygobject/2.28/${pname}-${version}.tar.xz";
url = "mirror://gnome/sources/pygobject/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0nkam61rsn7y3wik3vw46wk5q2cjfh2iph57hl9m39rc8jijb7dv";
};
@ -32,7 +32,7 @@ buildPythonPackage rec {
# used to select a specific version, in our setup it should have no
# effect, but we leave it in case somebody expects and calls it.
postInstall = lib.optionalString (!isPy3k) ''
mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${pname}-${version}.pth}
mv $out/${python.sitePackages}/{pygtk.pth,${pname}-${version}.pth}
# Prevent wrapping of codegen files as these are meant to be
# executed by the python program
@ -42,6 +42,7 @@ buildPythonPackage rec {
meta = with lib; {
homepage = "https://pygobject.readthedocs.io/";
description = "Python bindings for GLib";
platforms = platforms.unix;
license = licenses.gpl2;
maintainers = with maintainers; [ ];
};
}

View file

@ -7918,8 +7918,6 @@ self: super: with self; {
pygmt = callPackage ../development/python-modules/pygmt { };
pygobject2 = callPackage ../development/python-modules/pygobject { };
pygobject3 = callPackage ../development/python-modules/pygobject/3.nix {
# inherit (pkgs) meson won't work because it won't be spliced
inherit (pkgs.buildPackages) meson;

View file

@ -43,6 +43,8 @@ with self; with super; {
inherit (pkgs.buildPackages) meson;
};
pygobject2 = callPackage ../development/python2-modules/pygobject { };
pygtk = callPackage ../development/python2-modules/pygtk { };
pyparsing = callPackage ../development/python2-modules/pyparsing { };