diff --git a/pkgs/development/python2-modules/pygobject/default.nix b/pkgs/development/python2-modules/pygobject/default.nix deleted file mode 100644 index 88a4375b0029..000000000000 --- a/pkgs/development/python2-modules/pygobject/default.nix +++ /dev/null @@ -1,62 +0,0 @@ -{ - lib, - stdenv, - fetchurl, - fetchpatch, - python, - buildPythonPackage, - pkg-config, - glib, - isPy3k, - pythonAtLeast, -}: - -buildPythonPackage rec { - pname = "pygobject"; - version = "2.28.7"; - format = "other"; - disabled = pythonAtLeast "3.9"; - - src = fetchurl { - url = "mirror://gnome/sources/pygobject/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "0nkam61rsn7y3wik3vw46wk5q2cjfh2iph57hl9m39rc8jijb7dv"; - }; - - outputs = [ - "out" - "devdoc" - ]; - - patches = lib.optionals stdenv.hostPlatform.isDarwin [ - ./pygobject-2.0-fix-darwin.patch - (fetchpatch { - url = "https://github.com/macports/macports-ports/raw/f2975d5bbbc2459c661905c5a850cc661fa32f55/python/py-gobject/files/py-gobject-dynamic_lookup-11.patch"; - sha256 = "sha256-mtlyu+La3+iC5iQAmVJzDA5E35XGaRQy/EKXzvrWRCg="; - extraPrefix = ""; - }) - ]; - - configureFlags = [ "--disable-introspection" ]; - - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ glib ]; - - # in a "normal" setup, pygobject and pygtk are installed into the - # same site-packages: we need a pth file for both. pygtk.py would be - # 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/${python.sitePackages}/{pygtk.pth,${pname}-${version}.pth} - - # Prevent wrapping of codegen files as these are meant to be - # executed by the python program - chmod a-x $out/share/pygobject/*/codegen/*.py - ''; - - meta = { - homepage = "https://pygobject.readthedocs.io/"; - description = "Python bindings for GLib"; - license = lib.licenses.gpl2; - maintainers = [ ]; - }; -} diff --git a/pkgs/development/python2-modules/pygobject/pygobject-2.0-fix-darwin.patch b/pkgs/development/python2-modules/pygobject/pygobject-2.0-fix-darwin.patch deleted file mode 100644 index 7fef05262f4d..000000000000 --- a/pkgs/development/python2-modules/pygobject/pygobject-2.0-fix-darwin.patch +++ /dev/null @@ -1,88 +0,0 @@ ---- a/gio/unix-types.defs -+++ b/gio/unix-types.defs -@@ -7,18 +7,6 @@ - (gtype-id "G_TYPE_UNIX_CONNECTION") - ) - --(define-object DesktopAppInfo -- (docstring -- "DesktopAppInfo(desktop_id) -> gio.unix.DesktopAppInfo\n\n" -- "gio.Unix.DesktopAppInfo is an implementation of gio.AppInfo\n" -- "based on desktop files." -- ) -- (in-module "giounix") -- (parent "GObject") -- (c-name "GDesktopAppInfo") -- (gtype-id "G_TYPE_DESKTOP_APP_INFO") --) -- - (define-object FDMessage - (in-module "giounix") - (parent "GSocketControlMessage") ---- a/gio/unix.defs -+++ b/gio/unix.defs -@@ -32,54 +32,6 @@ - - - --;; From gdesktopappinfo.h -- --(define-function desktop_app_info_get_type -- (c-name "g_desktop_app_info_get_type") -- (return-type "GType") --) -- --(define-function desktop_app_info_new_from_filename -- (c-name "g_desktop_app_info_new_from_filename") -- (return-type "GDesktopAppInfo*") -- (parameters -- '("const-char*" "filename") -- ) --) -- --(define-function g_desktop_app_info_new_from_keyfile -- (c-name "g_desktop_app_info_new_from_keyfile") -- (return-type "GDesktopAppInfo*") -- (parameters -- '("GKeyFile*" "key_file") -- ) --) -- --(define-function desktop_app_info_new -- (c-name "g_desktop_app_info_new") -- (is-constructor-of "GDesktopAppInfo") -- (return-type "GDesktopAppInfo*") -- (parameters -- '("const-char*" "desktop_id") -- ) --) -- --(define-method get_is_hidden -- (of-object "GDesktopAppInfo") -- (c-name "g_desktop_app_info_get_is_hidden") -- (return-type "gboolean") --) -- --(define-function desktop_app_info_set_desktop_env -- (c-name "g_desktop_app_info_set_desktop_env") -- (return-type "none") -- (parameters -- '("const-char*" "desktop_env") -- ) --) -- -- -- - ;; From gunixfdmessage.h - - (define-function g_unix_fd_message_get_type ---- a/gio/unix.override -+++ b/gio/unix.override -@@ -24,7 +24,6 @@ - #define NO_IMPORT_PYGOBJECT - #include - #include --#include - #include - #include - #include diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 1252de7b1f14..db52f40d06ef 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -353,6 +353,7 @@ mapAliases { pymicro-vad = throw "'pymicro-vad' was removed because Home Assistant switched to 'pysilero-vad'"; # added 2026-01-08 PyMVGLive = throw "'PyMVGLive' has been renamed to/replaced by 'pymvglive'"; # Converted to throw 2025-10-29 pymyq = throw "'pymyq' has been renamed to/replaced by 'python-myq'"; # Converted to throw 2025-10-29 + pyobject = throw "'pyobject' has been removed because it was only supporting python 2"; # Added 2026-01-24 pyownet = throw "pyownet was removed because Home Assistant switched to aio-ownet"; # added 2025-10-31 pypcap = throw "pypcap has been removed because it is broken and unmaintained upstream."; # added 2025-06-18 pyqldb = throw "pyqldb has been removed, because the underlying service is reaching end of support"; # added 2025-07-30 diff --git a/pkgs/top-level/python2-packages.nix b/pkgs/top-level/python2-packages.nix index 86647bbc016f..6bc5a5bbd9a8 100644 --- a/pkgs/top-level/python2-packages.nix +++ b/pkgs/top-level/python2-packages.nix @@ -51,8 +51,6 @@ with super; inherit (pkgs.buildPackages) meson; }; - pygobject2 = callPackage ../development/python2-modules/pygobject { }; - pyparsing = callPackage ../development/python2-modules/pyparsing { }; pytest = pytest_4;