From 88a77bdda15cd915481de02655987489853786c3 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 1 May 2022 02:26:52 -0400 Subject: gnu: Remove python2-pygobject. * gnu/packages/glib.scm (python2-pygobject, python2-pygobject-2): Delete variables. (python-pygobject)[properties]: Delete field. * gnu/packages/patches/python2-pygobject-2-deprecation.patch: Delete file. * gnu/local.mk (dist_patch_DATA): De-register it. * gnu/packages/gnome.scm (libsecret): Remove commented Python 2 inputs. --- gnu/local.mk | 1 - gnu/packages/glib.scm | 70 +--------------------- gnu/packages/gnome.scm | 7 --- .../patches/python2-pygobject-2-deprecation.patch | 39 ------------ 4 files changed, 1 insertion(+), 116 deletions(-) delete mode 100644 gnu/packages/patches/python2-pygobject-2-deprecation.patch diff --git a/gnu/local.mk b/gnu/local.mk index 7a030283a7..b54c1fbefe 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1710,7 +1710,6 @@ dist_patch_DATA = \ %D%/packages/patches/python-pycrypto-time-clock.patch \ %D%/packages/patches/python-pyan3-fix-absolute-path-bug.patch \ %D%/packages/patches/python-pyan3-fix-positional-arguments.patch \ - %D%/packages/patches/python2-pygobject-2-deprecation.patch \ %D%/packages/patches/python-pygpgme-fix-pinentry-tests.patch \ %D%/packages/patches/python-pytorch-runpath.patch \ %D%/packages/patches/python-pytorch-system-libraries.patch \ diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index 30e5433776..09d5a03555 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -816,44 +816,6 @@ (define-public glibmm-2.64 (modify-inputs (package-propagated-inputs glibmm) (replace "libsigc++" libsigc++-2))))) -(define-public python2-pygobject-2 - (package - (name "python2-pygobject") - ;; This was the last version to declare the 2.0 platform number, i.e. its - ;; pkg-config files were named pygobject-2.0.pc - (version "2.28.7") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://gnome/sources/pygobject/" - (version-major+minor version) - "/pygobject-" version ".tar.xz")) - (sha256 - (base32 - "0nkam61rsn7y3wik3vw46wk5q2cjfh2iph57hl9m39rc8jijb7dv")) - (patches (search-patches "python2-pygobject-2-deprecation.patch")))) - (build-system gnu-build-system) - (native-inputs - `(("which" ,which) - ("glib-bin" ,glib "bin") ;for tests: glib-compile-schemas - ("pkg-config" ,pkg-config) - ("dbus" ,dbus))) ;for tests - (inputs - `(("python" ,python-2) - ("glib" ,glib) - ("python2-pycairo" ,python2-pycairo) - ("gobject-introspection" ,gobject-introspection))) - (propagated-inputs - (list libffi)) ;mentioned in pygobject-2.0.pc - (arguments - `(#:tests? #f ;segfaults during tests - #:configure-flags '("LIBS=-lcairo-gobject"))) - (home-page "https://pypi.org/project/PyGObject/") - (synopsis "Python bindings for GObject") - (description - "Python bindings for GLib, GObject, and GIO.") - (license license:lgpl2.1+))) - (define-public python-pygobject (package (name "python-pygobject") @@ -902,37 +864,7 @@ (define-public python-pygobject (synopsis "Python bindings for GObject") (description "Python bindings for GLib, GObject, and GIO.") - (license license:lgpl2.1+) - (properties `((python2-variant . ,(delay python2-pygobject)))))) - -(define-public python2-pygobject - (let ((base (strip-python2-variant python-pygobject))) - (package/inherit base - (name "python2-pygobject") - - ;; Note: We use python-build-system here, because Meson only supports - ;; Python 3, and needs PYTHONPATH etc set up correctly, which makes it - ;; difficult to use for Python 2 projects. - (build-system python-build-system) - (arguments - `(#:python ,python-2 - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'delete-broken-tests - (lambda _ - ;; FIXME: this test freezes and times out. - (delete-file "tests/test_mainloop.py") - ;; FIXME: this test fails with this kind of error: - ;; AssertionError: != -Date: Sat, 13 Aug 2011 04:13:28 -0400 -Subject: remove references to deprecated GI_INFO_TYPE_ERROR_DOMAIN - - -diff --git a/gi/pygi-info.c b/gi/pygi-info.c -index 8729e25..007b609 100644 ---- a/gi/pygi-info.c -+++ b/gi/pygi-info.c -@@ -165,9 +165,6 @@ _pygi_info_new (GIBaseInfo *info) - case GI_INFO_TYPE_CONSTANT: - type = &PyGIConstantInfo_Type; - break; -- case GI_INFO_TYPE_ERROR_DOMAIN: -- type = &PyGIErrorDomainInfo_Type; -- break; - case GI_INFO_TYPE_UNION: - type = &PyGIUnionInfo_Type; - break; -@@ -484,7 +481,6 @@ _pygi_g_type_info_size (GITypeInfo *type_info) - case GI_INFO_TYPE_INVALID: - case GI_INFO_TYPE_FUNCTION: - case GI_INFO_TYPE_CONSTANT: -- case GI_INFO_TYPE_ERROR_DOMAIN: - case GI_INFO_TYPE_VALUE: - case GI_INFO_TYPE_SIGNAL: - case GI_INFO_TYPE_PROPERTY: -@@ -863,7 +859,6 @@ pygi_g_struct_info_is_simple (GIStructInfo *struct_info) - case GI_INFO_TYPE_INVALID: - case GI_INFO_TYPE_FUNCTION: - case GI_INFO_TYPE_CONSTANT: -- case GI_INFO_TYPE_ERROR_DOMAIN: - case GI_INFO_TYPE_VALUE: - case GI_INFO_TYPE_SIGNAL: - case GI_INFO_TYPE_PROPERTY: --- -cgit v0.10.1 - -- cgit v1.2.3