blob: b1484e2b96280fa5c831b2bf8eec76d2e6694594 (
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
|
# Maintainer: Anton Kudelin <kudelin at proton dot me>
# Contributor: Hans-Nikolai Viessmann <hans AT viess.mn>
_pkgname=dateutils
pkgname=python-$_pkgname
pkgver=0.6.12
pkgrel=3
pkgdesc="Utilities for working with datetime objects"
arch=(any)
url="https://github.com/jmcantrell/python-dateutils"
license=(ISC)
depends=(python python-dateutil python-pytz)
makedepends=(python-build python-installer python-setuptools python-wheel)
source=($pkgname-$pkgver.tar.gz::"$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('a7633f065542c5550e719622ac72f6f2d67e9b0a6af0d4b0cc13e0b9eab006aa')
build() {
cd "$srcdir/$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|