summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4313c986e921e1e5bdf2fe373b77b8d9f37cd8ef (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: Mark Collins <tera_1225 [aaht] hotmail ðot com>
pkgname=python-aletheia-probe
_name="aletheia_probe" # replaced - with _
pkgver=0.8.0
pkgrel=1
pkgdesc="detect predatory journals and conferences using authoritative data sources"
arch=(any)
url="https://github.com/sustainet-guardian/aletheia-probe"
license=('MIT')
depends=(
    python
    python-aiohttp
    python-aiofiles
    python-click
    python-pyyaml
    python-rarfile
    python-pydantic
    python-pypdf
    python-pybtex
    python-openpyxl
)
optdepends=(
    python-twine
    python-packaging
    python-requests
)
makedepends=(
    python-build
    python-installer
    python-setuptools
    python-wheel
)
source=(    https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-$pkgver.tar.gz)
sha256sums=('4d989f3e2e9157af82bfbb49e7f1ef8745af7e59a21402cc94b70a435a593ac2')

build() {
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    mkdir -p "$pkgdir/usr/share/licenses/python-aletheia-probe/"
    cp LICENSE "$pkgdir/usr/share/licenses/python-aletheia-probe/"
}