blob: b33b97eb6c581269d0f9c1ab427d82bbce9d981e (
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
31
32
33
34
35
36
37
38
39
|
# Maintainer: Max <max@swk-web.com>
_pkgname=csv-diff
pkgname=python-${_pkgname}
pkgver=1.2
pkgrel=1
pkgdesc='Tool for viewing the difference between two CSV, TSV or JSON files.'
arch=('any')
url=''https://pypi.org/project/csv-diff/
license=('Apache')
depends=('python' 'python-dictdiffer' 'python-click')
makedepends=('python-setuptools' 'python-pip' 'python-pytest-runner')
checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::https://github.com/simonw/${_pkgname}/archive/refs/tags/${pkgver}.tar.gz"
"setup-exclude-tests.patch")
sha256sums=('ff138de5bbe2a1c625b3f0ca07e03b5e5fdc19e154a8e56475362617bc36f86d'
'2431612ac5a873dfb832181b41a7652fd01857ba6c788dae6e3187178492c7ae')
prepare() {
cd "$srcdir/$_pkgname-$pkgver"
patch -N < "$srcdir"/setup-exclude-tests.patch
}
build() {
cd "$srcdir/$_pkgname-$pkgver"
python -m build -wn
}
check() {
cd "$srcdir/$_pkgname-$pkgver"
PYTHONPATH=build/lib pytest tests
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
python -m installer -d "${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|