summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a16f6a2f0b4644cf30f16f3614ede940bf60b8b2 (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
# Maintainer: Lucas <lucas.biaggi@kde.org>

pkgname=python-taskw-ng
pkgver=0.2.6
pkgrel=2
pkgdesc="Python bindings for your taskwarrior database next generation"
url="https://github.com/bergercookie/taskw-ng/"
depends=("python" "python-pytz" "python-dateutil" "python-kitchen" "task")
makedepends=('python' 'python-poetry-core')
conflicts=('python-taskw')
provides=('python-taskw=2.1')
replaces=('python-taskw')
license=("GPL")
arch=('any')
source=("taskw-ng-${pkgver}.tar.gz::https://github.com/bergercookie/taskw-ng/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('0004525d1d8320a4b606432a7c3db8ff8da102a5d7754474a675596f6ffc0e4f')

prepare() {
    cp ../pyproject.patch .
    patch -i pyproject.patch -u ${srcdir}/taskw-ng-${pkgver}/pyproject.toml
}

build(){
    cd "${srcdir}/taskw-ng-${pkgver}"
    poetry version ${pkgver}
    python -m build -wn
}

package(){
    PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer -d "${pkgdir}" "${srcdir}/taskw-ng-${pkgver}/dist/taskw_ng-${pkgver}-py3-none-any.whl"

}