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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 4 09:23:17 UTC 2019


    Date: Monday, November 4, 2019 @ 09:23:17
  Author: foutrelis
Revision: 523874

archrelease: copy trunk to community-staging-any

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

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

Copied: python-etesync/repos/community-staging-any/PKGBUILD (from rev 523873, python-etesync/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 09:23:17 UTC (rev 523874)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+
+_name=etesync
+pkgname=python-etesync
+pkgver=0.9.2
+pkgrel=2
+pkgdesc="Python API to interact with an EteSync server."
+arch=('any')
+url="https://pypi.python.org/pypi/etesync/"
+license=('LGPL')
+depends=('python-appdirs' 'python-asn1crypto' 'python-cffi' 'python-coverage'
+'python-cryptography' 'python-dateutil' 'python-furl' 'python-idna'
+'python-orderedmultidict' 'python-packaging' 'python-peewee' 'python-py'
+'python-pyasn1' 'python-pycparser' 'python-pyparsing' 'python-requests'
+'python-scrypt' 'python-six' 'python-pytz' 'python-vobject')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('2379797d18427568a409dba505bbc8ee45e49b7a3d5de54fb6021ab9158196175019b1ee029de7cd34f097bdf71db3fc1e2909c4ff1c60f48d724eda9b1f16cb')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  # only run relevant tests:
+  # https://github.com/etesync/pyetesync/issues/5
+  pytest -vvv tests/{test_collections.py,test_crypto.py}
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
+    -vDm 644 {DESCRIPTION.rst,README.md}
+}
+



More information about the arch-commits mailing list