blob: 128b581d1ce43cde25d37c9b9f99f9ebf349604d (
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
|
# Contributor: Reed Law <reed@lawlap.top>
# Python package author: Karl Voit <tools@Karl-Voit.at>
pkgname=python-date2name
_commit="5edf3cde92910284e23c1d0928f8eabc191d078d"
pkgver=2024.4.26.1
pkgrel=1
pkgdesc="Handling time-stamps and date-stamps in file names"
arch=(any)
url="https://github.com/novoid/date2name"
license=('GPL-3.0-only')
depends=('python')
makedepends=('git' 'python-poetry')
checkdepends=('python-pytest')
source=("$pkgname::git+${url}.git#commit=$_commit")
sha256sums=('bc463f50cace13658c5d984c2faf21fb3699c6b40fde07f8ef2d5975adcb453e')
prepare() {
cd "$pkgname"
# fix syntax warning
sed -i "s/compile('/compile(r'/" date2name/__init__.py
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
check() {
cd "$pkgname"
pytest -v test_date2name.py
}
package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir/" dist/*.whl
}
# vim: set ts=4 sw=4 et:
|