summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4e9f241bc36aa78cdf1461c53a1a2aa6366eb233 (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
# Contributor: amadejpapez <amadej.papez@gmail.com>

pkgname=python-name-that-hash
_pkgname=Name-That-Hash
pkgver=1.11.0
pkgrel=7
pkgdesc="The Modern Hash Identification System."
arch=("any")
url="https://github.com/HashPals/Name-That-Hash"
license=("GPL3")
depends=("python" "python-click" "python-rich")
makedepends=("python-build" "python-installer" "python-poetry-core" "python-wheel")
checkdepends=("python-pytest")
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('2f8dd4beaf7326d2f664f18205c024848dcb627ff29ceffb22ab410fbef2d761')

check() {
    cd $_pkgname-$pkgver
    pytest
}

build() {
    cd $_pkgname-$pkgver
    python -m build --wheel --skip-dependency-check --no-isolation
}

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