[arch-commits] Commit in python-aniso8601/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Mar 20 09:29:08 UTC 2019
Date: Wednesday, March 20, 2019 @ 09:29:08
Author: felixonmars
Revision: 442872
archrelease: copy trunk to community-testing-any
Added:
python-aniso8601/repos/community-testing-any/
python-aniso8601/repos/community-testing-any/PKGBUILD
(from rev 442871, python-aniso8601/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-aniso8601/repos/community-testing-any/PKGBUILD (from rev 442871, python-aniso8601/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-03-20 09:29:08 UTC (rev 442872)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-aniso8601
+pkgname=(python-aniso8601 python2-aniso8601)
+pkgver=6.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=('cca401022479cf2a50cec9d509e6ea5861f930342cfc5a5a112a1ca934b60e2fe25015921715172f0b001ccb65b12c35e81467f1ec836be15f2470d9afda70f7')
+
+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