[arch-commits] Commit in python-isort/repos (staging-any staging-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 03:11:50 UTC 2018
Date: Saturday, June 30, 2018 @ 03:11:49
Author: felixonmars
Revision: 327795
archrelease: copy trunk to staging-any
Added:
python-isort/repos/staging-any/
python-isort/repos/staging-any/PKGBUILD
(from rev 327794, python-isort/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-isort/repos/staging-any/PKGBUILD (from rev 327794, python-isort/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2018-06-30 03:11:49 UTC (rev 327795)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Yaron de Leeuw <me at jarondl.net>
+
+pkgbase=python-isort
+pkgname=('python-isort' 'python2-isort')
+pkgver=4.3.4
+pkgrel=2
+pkgdesc="A Python utility / library to sort Python imports."
+arch=('any')
+url="https://github.com/timothycrosley/isort"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python2-futures')
+checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/timothycrosley/isort/archive/$pkgver.tar.gz")
+sha512sums=('cc9254c288e479a05cc20c29c9be6fa368a46e85f8eb0a22238ee3e57004a75999d35d2a736ad0a4ddc7d7c7efcc30fb97bfd16fcd0adb44d3b937dd935588b7')
+
+prepare() {
+ cp -a isort-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/isort-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/isort-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/isort-$pkgver
+ python setup.py test
+
+ cd "$srcdir"/isort-$pkgver-py2
+ python2 setup.py test
+}
+
+package_python-isort() {
+ depends=('python-setuptools')
+
+ cd isort-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-isort() {
+ depends=('python2-setuptools' 'python2-futures')
+
+ cd isort-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ mv "$pkgdir"/usr/bin/isort{,2}
+}
More information about the arch-commits
mailing list