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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:54:13 UTC 2020


    Date: Monday, November 9, 2020 @ 15:54:12
  Author: felixonmars
Revision: 747222

archrelease: copy trunk to community-staging-any

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

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

Copied: python-aniso8601/repos/community-staging-any/PKGBUILD (from rev 747221, python-aniso8601/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:54:12 UTC (rev 747222)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-aniso8601
+pkgver=8.0.0
+pkgrel=4
+pkgdesc="A library for parsing ISO 8601 strings."
+url="https://bitbucket.org/nielsenb/aniso8601"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-dateutil' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://bitbucket.org/nielsenb/aniso8601/get/v$pkgver.tar.gz")
+sha512sums=('111bf07955795cf418971d4c9d776b91e3e4aa276d6dda78581f1d42b49e30ed67bb0f4fdbc2efeebaf4dbdfed2afe78084dc350dcda0d41afd92ccb821a2e1d')
+
+prepare() {
+  mv nielsenb-aniso8601-* aniso8601-$pkgver
+}
+
+build() {
+  cd "$srcdir"/aniso8601-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/aniso8601-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd aniso8601-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list