blob: 3f1aa05da085ee51416456e049fd989ab1bb896f (
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
|
# Maintainer: Philipp A. <flying-sheep@web.de>
_name=itertools-len
pkgname=python-$_name
pkgver=1.2
pkgrel=1
pkgdesc='Wrapper around the stdlib’ itertools with len() support'
arch=('any')
url="https://github.com/flying-sheep/$_name"
license=('GPL-3.0-or-later')
depends=(python)
checkdepends=(python-pytest)
makedepends=(python-hatchling python-hatch-vcs python-build python-installer python-wheel)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/${_name/-/_}-$pkgver.tar.gz")
sha256sums=('a8eaf34e1d5d35f38ff405a341617b97bfc70f20978626cff425c9e60444dd0e')
build() {
cd "${_name/-/_}-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "${_name/-/_}-$pkgver"
PYTHONPATH=src pytest --color=yes -v
}
package() {
cd "${_name/-/_}-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|