summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e08d14a676fdba4e72c1c0410539330dc3d4a3d (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
# Maintainer: Charles Vejnar <first name [dot] last name [at] gmail [dot] com>

pkgname=python-pyfnutils
pkgver=1.4
pkgrel=1
pkgdesc="Small utility functions for Python: logging, parallel tasks, zstd."
arch=("any")
url="https://github.com/vejnar/pyfnutils"
license=("MPLv2")
depends=('python')
makedepends=('python-build'
             'python-installer'
             'python-setuptools'
             'python-setuptools-scm'
             'python-wheel')
source=("$pkgname-$pkgver.tar.gz::https://github.com/vejnar/pyfnutils/archive/v$pkgver.tar.gz")
sha256sums=('320bf31cab6d6197eacea5a20931b134890627534f418a9f8a1c1618344a6596')

build() {
    cd "$srcdir/pyfnutils-$pkgver"
    export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
    python -m build --wheel --no-isolation
}

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