mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
this is only a partial rebuild, including stuff that i built on my personal machine with python 3.12.2; might fail with 3.12.3
45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
# Maintainer: Cowington Post <cowingtonpost@gmail.com>
|
|
pkgname=bdfr
|
|
pkgver=2.6.2
|
|
pkgrel=1
|
|
pkgdesc="Downloads and archives content from reddit"
|
|
url="https://github.com/aliparlakci/bulk-downloader-for-reddit"
|
|
arch="noarch"
|
|
license="GPL-3.0-or-later"
|
|
depends="
|
|
py3-appdirs
|
|
py3-beautifulsoup4
|
|
py3-click
|
|
py3-dict2xml
|
|
py3-praw
|
|
py3-requests
|
|
py3-yaml
|
|
python3
|
|
yt-dlp-core
|
|
"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
source="https://github.com/aliparlakci/bulk-downloader-for-reddit/archive/refs/tags/v$pkgver/bdfr-$pkgver.tar.gz"
|
|
builddir="$srcdir/bulk-downloader-for-reddit-$pkgver"
|
|
options="!check" # require actually downloading a bunch of data from the apis
|
|
|
|
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
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2f5cdd9bb8be388add20dec70af378a5c13c7d1964dd601c4297f5873924321fd0dcd9e114e7e7243e812f60392890a05e2bc01b1d3004a2ddefb8fbfebc6ef9 bdfr-2.6.2.tar.gz
|
|
"
|