[arch-commits] Commit in python-isort/repos (testing-any testing-any/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat May 25 18:57:11 UTC 2019
Date: Saturday, May 25, 2019 @ 18:57:10
Author: felixonmars
Revision: 354296
archrelease: copy trunk to testing-any
Added:
python-isort/repos/testing-any/
python-isort/repos/testing-any/PKGBUILD
(from rev 354295, python-isort/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-isort/repos/testing-any/PKGBUILD (from rev 354295, python-isort/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2019-05-25 18:57:10 UTC (rev 354296)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Yaron de Leeuw <me at jarondl.net>
+
+pkgname=python-isort
+pkgver=4.3.20
+pkgrel=1
+pkgdesc="A Python utility / library to sort Python imports."
+arch=('any')
+url="https://github.com/timothycrosley/isort"
+license=('MIT')
+depends=('python-setuptools')
+checkdepends=('python-pytest' 'python-mock' 'python-pip' 'python-pip-api' 'pylama' 'python-pipreqs'
+ 'python-requirementslib')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/timothycrosley/isort/archive/$pkgver.tar.gz")
+sha512sums=('03cca362a5c70b27f0893c00abdd65b39d35dfbd034b24a60703d222f0f21f8de5f650f2fb85adf6f37b1b33bfe02bf1b93d486000af7c6f45302a0d3c355cfb')
+
+build() {
+ cd isort-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd isort-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" pytest
+}
+
+package() {
+ cd isort-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list