blob: 045f41a1f10e6fd2582d70e2939e8e65004a1e49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Manuel Wiesinger <m {you know what belongs here} mmap {and here} at>
_name=black-macchiato
pkgname="python-${_name}"
pkgver=1.3.0
pkgrel=3
pkgdesc="Small utility built on top of the black Python code formatter to enable formatting of partial files"
arch=('any')
url="https://github.com/wbolster/black-macchiato"
license=('BSD-3-Clause')
depends=('python-black' 'python-importlib-metadata' 'python-setuptools' 'python>=3.6')
checkdepends=('python-pytest')
source=("pkgname-$pkgver.tar.gz::https://github.com/wbolster/black-macchiato/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('a05b40f4c5a0c3118f5ed9237a4233b3bb5b87779b27141cb7a77921fe66f469a64d3edd4531540a1c68a0bd7642308b01553d21f953c917a47a7790a5d7684e')
build() {
cd $_name-$pkgver
python setup.py build
}
check() {
cd $_name-$pkgver
pytest
}
package() {
cd $_name-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.rst"
}
|