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

Felix Yan felixonmars at archlinux.org
Wed May 23 09:01:04 UTC 2018


    Date: Wednesday, May 23, 2018 @ 09:01:04
  Author: felixonmars
Revision: 328123

archrelease: copy trunk to community-any

Added:
  python-marshmallow/repos/community-any/
  python-marshmallow/repos/community-any/PKGBUILD
    (from rev 328122, python-marshmallow/trunk/PKGBUILD)

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

Copied: python-marshmallow/repos/community-any/PKGBUILD (from rev 328122, python-marshmallow/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-05-23 09:01:04 UTC (rev 328123)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-marshmallow
+pkgname=(python-marshmallow python2-marshmallow)
+pkgver=2.15.3
+pkgrel=1
+pkgdesc="A lightweight library for converting complex datatypes to and from native Python datatypes."
+url="https://github.com/marshmallow-code/marshmallow"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-simplejson'
+              'python2-simplejson' 'python-pytz' 'python2-pytz' 'python-dateutil'
+              'python2-dateutil')
+source=("https://pypi.io/packages/source/m/marshmallow/marshmallow-$pkgver.tar.gz")
+sha512sums=('5cabbb3bb3d3ad3715d30ded56f13e50689f703c1c696bc7d102b32ace5de21528dc465b1d5fe9c07a175170ec53ac7a252aa04fb009d4e77f631414feaab830')
+
+prepare() {
+  cp -a marshmallow-$pkgver{,-py2}
+  rm -r marshmallow-$pkgver-py2/tests/test_py3
+}
+
+build() {
+  cd "$srcdir"/marshmallow-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/marshmallow-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/marshmallow-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/marshmallow-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-marshmallow() {
+  depends=('python')
+
+  cd marshmallow-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-marshmallow() {
+  depends=('python2')
+
+  cd marshmallow-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list