summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5539933bcf45aebc83c1e414843a51fad91ebd10 (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
40
41
42
43
44
45
46
# Maintainer: AlphaJack <alphajack at tuta dot io>
# Contributor: Carlos José Ruiz-Henestrosa Ruiz <ruizh.cj@gmail.com>

pkgname="python-beancount-import-git"
pkgver=1.3.5.r44.gf108b59
pkgrel=1
pkgdesc="Semi-automatic importer from external data sources into beancount"
url="https://github.com/jbms/beancount-import"
arch=("any")
license=("MIT")
provides=("beancount-import")
conflicts=("beancount-import" "beancount-import-git" "python-beancount-import")
depends=("beancount"
         "python"
         "python-atomicwrites"
         "python-dateutil"
         "python-jsonschema"
         "python-nltk"
         "python-numpy"
         "python-scipy"
         "python-scikit-learn"
         "python-tornado"
         "python-watchdog")
makedepends=("git" "npm" "python-build" "python-installer" "python-wheel" "python-setuptools-scm")
source=("git+$url")
sha256sums=("SKIP")

pkgver(){
 cd "beancount-import"
 git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build(){
 cd "beancount-import"
 python -m build --wheel --no-isolation
}

check(){
 cd "beancount-import"
 pytest
}

package(){
 cd "beancount-import"
 python -m installer --destdir="$pkgdir" dist/*.whl
}