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

Felix Yan felixonmars at archlinux.org
Wed Jun 12 10:31:52 UTC 2019


    Date: Wednesday, June 12, 2019 @ 10:31:51
  Author: felixonmars
Revision: 480640

archrelease: copy trunk to community-testing-any

Added:
  python-aniso8601/repos/community-testing-any/
  python-aniso8601/repos/community-testing-any/PKGBUILD
    (from rev 480639, python-aniso8601/trunk/PKGBUILD)

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

Copied: python-aniso8601/repos/community-testing-any/PKGBUILD (from rev 480639, python-aniso8601/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-06-12 10:31:51 UTC (rev 480640)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-aniso8601
+pkgname=(python-aniso8601 python2-aniso8601)
+pkgver=7.0.0
+pkgrel=1
+pkgdesc="A library for parsing ISO 8601 strings."
+url="https://bitbucket.org/nielsenb/aniso8601"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-dateutil' 'python2-dateutil'
+              'python-mock' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://bitbucket.org/nielsenb/aniso8601/get/v$pkgver.tar.gz")
+sha512sums=('301054064b14af2795ce0fbc2c70679a6b64cb7e6967b8e6fc366ac1836a05db961cee71011c7feab44adb73e1b4cf6f99ccc285714df9dbc2c9e993a2a5bd2d')
+
+prepare() {
+  mv nielsenb-aniso8601-* aniso8601-$pkgver
+  cp -a aniso8601-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/aniso8601-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/aniso8601-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/aniso8601-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/aniso8601-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-aniso8601() {
+  depends=('python')
+
+  cd aniso8601-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-aniso8601() {
+  depends=('python2')
+
+  cd aniso8601-$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