[arch-commits] Commit in python-pony/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 23 09:36:27 UTC 2020


    Date: Monday, November 23, 2020 @ 09:36:27
  Author: felixonmars
Revision: 759843

archrelease: copy trunk to community-staging-any

Added:
  python-pony/repos/community-staging-any/
  python-pony/repos/community-staging-any/PKGBUILD
    (from rev 759842, python-pony/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: python-pony/repos/community-staging-any/PKGBUILD (from rev 759842, python-pony/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-23 09:36:27 UTC (rev 759843)
@@ -0,0 +1,46 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=pony
+pkgname=python-$_pkgname
+pkgver=0.7.13
+pkgrel=2
+pkgdesc='Pony Object Relational Mapper'
+arch=('any')
+url='https://github.com/ponyorm/pony'
+depends=('python')
+makedepends=('python-setuptools')
+license=('Apache')
+source=("$pkgname-$pkgver::$url/archive/v$pkgver.tar.gz"
+        "$pkgname-py39-decompiler.patch::https://github.com/ponyorm/pony/commit/91c8f6559dae.patch"
+        "$pkgname-py39-setup.patch::https://github.com/ponyorm/pony/commit/ef461888c409.patch")
+sha512sums=('431d19e3297ba1cdae5313948123d8b8cd71ee8ad5868b8cc2f5447eb435875fdbcdc3768834b9afe22ce8e4c1abaabeb597f3e6974b00aab33aa61e497d6390'
+            '04aa810fe2433ef1a14da28ce08ed223f4c541af13d2cbb23a3c7985d4bc82625067ad6785ede406188b4430b7562c1ba4b411ad840a4cba05df2a8e670d6c4b'
+            '4339f1de58183db141e8a62b6d7d37ec4fbd3e59765d87f130299579d7e09dd1e5334ffbd5f0cbdc0df4277e044f5a37cc98d810178d0ca0f7e21ad22c44131a')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  # https://github.com/ponyorm/pony/issues/514
+  patch -Np1 -i ../$pkgname-py39-decompiler.patch
+  patch -Np1 -i ../$pkgname-py39-setup.patch
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py test
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  rm -rf "$pkgdir"/usr/lib/python*/site-packages/pony/orm/tests
+}



More information about the arch-commits mailing list