mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-17 02:16:39 +02:00
39 lines
1.3 KiB
Text
39 lines
1.3 KiB
Text
# Contributor: Simon Frankenberger <simon-alpine@fraho.eu>
|
|
# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu>
|
|
pkgname=thefuck
|
|
pkgver=3.32
|
|
pkgrel=5
|
|
pkgdesc="The Fuck is a magnificent app that corrects errors in previous console commands."
|
|
url="https://github.com/nvbn/thefuck"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-colorama py3-six py3-decorator py3-psutil py3-pyte"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-pytest py3-pytest-mock"
|
|
subpackages="$pkgname-pyc"
|
|
source="thefuck-$pkgver.tar.gz::https://github.com/nvbn/thefuck/archive/$pkgver.tar.gz
|
|
0420442e778dd7bc53bdbdb50278eea2c207dc74.patch
|
|
"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest \
|
|
--deselect tests/test_utils.py::TestGetValidHistoryWithoutCurrent
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
961b9b6dc374cc0b854698455f688cf110adb21cfebd4cb645eb5f1ce11c14de6699bb4d40de86a5f9461273cbfc2eea318a9d437f803dc578dd431966cf26c1 thefuck-3.32.tar.gz
|
|
f902315eca5b92729d76fa1900563a04b6e69f9ca6e5995900d8e489ec8109df640d6ccefb31cad80016883af86e5c85b8e99cc06cb5f192c9d8d1395780dd36 0420442e778dd7bc53bdbdb50278eea2c207dc74.patch
|
|
"
|