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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 20:49:45 UTC 2020


    Date: Monday, November 9, 2020 @ 20:49:45
  Author: felixonmars
Revision: 748240

archrelease: copy trunk to community-staging-any

Added:
  python-sqlalchemy-utils/repos/community-staging-any/
  python-sqlalchemy-utils/repos/community-staging-any/PKGBUILD
    (from rev 748238, python-sqlalchemy-utils/trunk/PKGBUILD)

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

Copied: python-sqlalchemy-utils/repos/community-staging-any/PKGBUILD (from rev 748238, python-sqlalchemy-utils/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 20:49:45 UTC (rev 748240)
@@ -0,0 +1,39 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Husam Bilal <husam212 AT gmail DOT com>
+
+_name=sqlalchemy-utils
+pkgname=python-sqlalchemy-utils
+pkgver=0.36.8
+pkgrel=2
+pkgdesc='Various utility functions, new data types and helpers for SQLAlchemy'
+url='https://github.com/kvesteri/sqlalchemy-utils'
+depends=('python' 'python-sqlalchemy' 'python-anyjson' 'python-babel'
+         'python-arrow' 'python-intervals' 'python-phonenumbers' 'python-passlib'
+         'python-colour' 'python-dateutil' 'python-furl' 'python-cryptography'
+         'python-pendulum')
+checkdepends=('python-pytest' 'python-mock' 'python-flexmock' 'python-jinja')
+makedepends=('python')
+license=('BSD')
+arch=('any')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/kvesteri/sqlalchemy-utils/archive/${pkgver}.tar.gz)
+sha512sums=('491b707a012432bbf7a6c8d903f51187bcffacb7469c839a2b249acf58bc511049efe2439333d2906d31a1c1d0d2f40e245411072191ba283b6dc31c28c49878')
+
+build() {
+  cd ${_name}-${pkgver}
+  python setup.py build
+}
+
+package() {
+  cd ${_name}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+check() {
+  cd ${_name}-${pkgver}
+  # Tests require a postgres and MySQL db
+  pytest --disable-pytest-warnings tests/test_models.py
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list