blob: b97b9b3059fe4b6396345494d83f72fbbefc6865 (
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
|
pkgname=python-dateutil-git
pkgver=2.9.0.post0.r3.g9eaa5de
pkgrel=1
pkgdesc="Provides powerful extensions to the standard datetime module"
arch=('any')
license=('BSD-3-Clause' 'Apache-2.0')
url="https://github.com/dateutil/dateutil"
depends=('python-six')
makedepends=('git' 'python-build' 'python-wheel' 'python-installer' 'python-setuptools-scm')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url.git"
"0001-fix-many-deprecation-errors.patch")
sha256sums=('SKIP'
'84732fd631d4a562e477026ae2963a258551bf4aebc11a4e60966710d059436d')
pkgver() {
cd dateutil
git describe --long --tags | sed 's/-/.r/;s/-/./g'
}
prepare() {
cd dateutil
git apply ../0001-fix-many-deprecation-errors.patch
PYTHONPATH=src python updatezinfo.py
}
build() {
cd dateutil
python -m build --wheel --no-isolation
}
package() {
cd dateutil
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
# vim: set ts=4 sw=4 et:
|