[arch-commits] Commit in python-black/trunk (PKGBUILD)

Maxim Baz maximbaz at archlinux.org
Sat Dec 1 20:42:41 UTC 2018


    Date: Saturday, December 1, 2018 @ 20:42:40
  Author: maximbaz
Revision: 410711

upgpkg: python-black 18.9b0-3

python-black: import from AUR

Added:
  python-black/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-12-01 20:42:40 UTC (rev 410711)
@@ -0,0 +1,35 @@
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Maintainer: Daniel M. Capella <polycitizen at gmail.com>
+# Contributor: James Zhu <jameszhu at berkeley.edu>
+
+pkgname=python-black
+pkgver=18.9b0
+pkgrel=3
+pkgdesc='Uncompromising Python code formatter'
+arch=('any')
+url=https://github.com/ambv/black
+license=('MIT')
+depends=('python' 'python-appdirs' 'python-attrs' 'python-click' 'python-setuptools'
+         'python-toml')
+optdepends=('python-aiohttp: for the blackd HTTP server')
+checkdepends=('python-aiohttp')
+source=("https://files.pythonhosted.org/packages/source/b/black/black-$pkgver.tar.gz")
+sha512sums=('80f94867220f7511dfc72aa8886586530d33187e10c57a7721cb0c97e906941ef811811ef0b2afa77d5454ce00114f3724063a890c41af4d7b68ec59dee29a48')
+
+build() {
+  cd "black-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "black-$pkgver"
+  python -m unittest tests/test_black.py
+}
+
+package() {
+  cd "black-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list