[arch-commits] Commit in python-kivy/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 18:39:37 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:39:37
  Author: foutrelis
Revision: 753144

archrelease: copy trunk to community-staging-x86_64

Added:
  python-kivy/repos/community-staging-x86_64/
  python-kivy/repos/community-staging-x86_64/PKGBUILD
    (from rev 753143, python-kivy/trunk/PKGBUILD)
  python-kivy/repos/community-staging-x86_64/py38.patch
    (from rev 753143, python-kivy/trunk/py38.patch)

------------+
 PKGBUILD   |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 py38.patch |   16 ++++++++++++++++
 2 files changed, 65 insertions(+)

Copied: python-kivy/repos/community-staging-x86_64/PKGBUILD (from rev 753143, python-kivy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 18:39:37 UTC (rev 753144)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Lev Lybin <lev.lybin at gmail.com>
+# Contributor: lagrange <flkazemakase at gmail.com>
+# Contributor: mid-kid <esteve.varela at gmail.com>
+
+pkgname=python-kivy
+pkgver=1.11.1
+pkgrel=3
+pkgdesc="A software library for rapid development of hardware-accelerated multitouch applications."
+arch=('x86_64')
+url="https://kivy.org/"
+license=('MIT')
+depends=('python-docutils' 'gstreamer' 'sdl2_ttf' 'sdl2_mixer' 'sdl2_image')
+makedepends=('python-setuptools' 'cython')
+checkdepends=('python-pytest' 'python-coverage' 'python-gobject' 'xorg-server-xvfb' 'opencv' 'python-pyenchant'
+              'git' 'mtdev' 'xclip' 'xsel' 'gtk3' 'gst-plugins-base'
+              'gst-plugins-good' 'gst-libav' 'python-dbus')
+source=("https://pypi.io/packages/source/K/Kivy/Kivy-$pkgver.tar.gz"
+        py38.patch)
+sha512sums=('d6b34668d9ad9196edcb9a8307d6659868a8f72580018d873bc6e91823461c853c3c92758c0c3013b25faa177dd62ab5d12671411822112b13a9610e4eda3eb0'
+            'a128a81d3f7124339feb65c93eff6023174ae67db31b5eb3787046c906b03fd155e768d0342d0e8df1a3d2c739e3a90d3d31d8f43d8cb15ffdf5aba97ceda593')
+
+# For better metadata
+export KIVY_USE_SETUPTOOLS=1
+
+export LC_CTYPE=en_US.UTF-8
+
+prepare() {
+  # Remove max cython version limit
+  sed -i 's/,<={max_version}//' Kivy-$pkgver/setup.py # Kivy-$pkgver/kivy/tools/packaging/cython_cfg.py
+  patch -d Kivy-$pkgver/kivy -p1 -i ../../py38.patch
+}
+
+build() {
+  cd "$srcdir"/Kivy-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/Kivy-$pkgver
+  python setup.py build_ext --inplace
+  xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" pytest kivy/tests
+}
+
+package() {
+  cd Kivy-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: python-kivy/repos/community-staging-x86_64/py38.patch (from rev 753143, python-kivy/trunk/py38.patch)
===================================================================
--- community-staging-x86_64/py38.patch	                        (rev 0)
+++ community-staging-x86_64/py38.patch	2020-11-12 18:39:37 UTC (rev 753144)
@@ -0,0 +1,16 @@
+diff --git a/weakmethod.py.orig b/weakmethod.py
+index 4638abf..54bdc1b 100644
+--- a/weakmethod.py.orig
++++ b/weakmethod.py
+@@ -53,7 +53,10 @@ if sys.version > '3':
+             '''Returns True if the referenced callable was a bound method and
+             the instance no longer exists. Otherwise, return False.
+             '''
+-            return self.proxy is not None and not bool(dir(self.proxy))
++            try:
++                return self.proxy is not None and not bool(dir(self.proxy))
++            except ReferenceError:
++                return True
+ 
+         def __eq__(self, other):
+             try:



More information about the arch-commits mailing list