mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-01 23:01:35 +01:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# Contributor: Anjandev Momi <anjan@momi.ca>
|
|
# Maintainer: Anjandev Momi <anjan@momi.ca>
|
|
pkgname=trash-cli
|
|
pkgver=0.23.9.23
|
|
pkgrel=0
|
|
pkgdesc="Command line interface to the freedesktop.org trashcan"
|
|
url="https://github.com/andreafrancia/trash-cli"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later"
|
|
depends="python3 py3-psutil py3-six"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest py3-pytest-mock py3-flexmock py3-parameterized"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/andreafrancia/trash-cli/archive/refs/tags/$pkgver.tar.gz"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest -v
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
9af243b1c7a7caa2ac303f343b425b8437f72c5b4d461badde56f46940f2c2c997fad622fa7d44dfc16c97e09044837544f2295d5df3adc96e4eb2b50efdd9c9 trash-cli-0.23.9.23.tar.gz
|
|
"
|