user/calibre-web: upgrade to 0.6.25 #1825

Merged
forge merged 3 commits from calibre-web/upgrade-0.6.25 into edge 2025-12-15 20:40:04 +00:00
9 changed files with 128 additions and 11 deletions

View file

@ -0,0 +1,39 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-flask-httpauth
pkgver=4.8.0
pkgrel=3
pkgdesc="Basic and Digest HTTP authentication for Flask routes"
url="https://pypi.org/project/Flask-HTTPAuth"
arch="noarch"
license="MIT"
depends="py3-flask python3"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-pytest-asyncio py3-asgiref"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/F/Flask-HTTPAuth/Flask-HTTPAuth-$pkgver.tar.gz"
builddir="$srcdir"/Flask-HTTPAuth-$pkgver
replaces="py-flask-httpauth" # Backwards compatibility
provides="py-flask-httpauth=$pkgver-r$pkgrel" # Backwards compatibility
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/flask_httpauth*.whl
}
sha512sums="
15878f45faf6bdde43d7b588539b044d621ba1ba590880e3d0a3bccf4e9bd04b898b3372775e99577b7e7955c4b6d2d7cc80df19ba30415c6b7c1d3183b7e5f4 Flask-HTTPAuth-4.8.0.tar.gz
"

View file

@ -0,0 +1,55 @@
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
maintainer="lauren n. liberda <lauren@selfisekai.rocks>"
pkgname=py3-flask-limiter
pkgver=3.10.1
pkgrel=0
pkgdesc="Rate Limiting extension for Flask"
url="https://github.com/alisaifee/flask-limiter"
arch="noarch"
license="MIT"
depends="
py3-flask
py3-limits
py3-ordered-set
py3-rich
python3
"
makedepends="py3-setuptools py3-gpep517"
checkdepends="
py3-flask-restful
py3-flask-restx
py3-limits-mongodb
py3-limits-redis
py3-pytest
py3-pytest-cov
"
subpackages="$pkgname-pyc"
source="
https://github.com/alisaifee/flask-limiter/archive/refs/tags/$pkgver/flask-limiter-$pkgver.tar.gz
our-std-is-good-enough.patch
"
builddir="$srcdir/flask-limiter-$pkgver"
options="!check" # tests depend on unpackaged modules
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
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
a0d3af6f93d4283309d6df46ddb7fed4c358bbc712c2bd9e6897362c6d086c395cb9587c3d9da283ad757b574fd8c09d909f3c4b76d02ae8aade3e61dbea6aa0 flask-limiter-3.10.1.tar.gz
1b90e9134076cda249695d5ea741db9d205a2ae452c7d6edfe01eb37a221ce6f64b0e8ddcdbbee9b0e0fb16a28e5eabf14f1c1e41e965c7e3b93ea4f42caf553 our-std-is-good-enough.patch
"

View file

@ -0,0 +1,22 @@
--- ./flask_limiter/typing.py.orig
+++ ./flask_limiter/typing.py
@@ -11,7 +11,7 @@
cast,
)
-from typing_extensions import ParamSpec
+from typing import ParamSpec
R = TypeVar("R")
P = ParamSpec("P")
--- ./flask_limiter/commands.py.orig
+++ ./flask_limiter/commands.py
@@ -14,7 +14,7 @@
from rich.table import Table
from rich.theme import Theme
from rich.tree import Tree
-from typing_extensions import TypedDict
+from typing import TypedDict
from werkzeug.exceptions import MethodNotAllowed, NotFound
from werkzeug.routing import Rule

View file

@ -1,8 +1,8 @@
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=calibre-web
pkgver=0.6.21
pkgrel=1
pkgver=0.6.25
pkgrel=0
pkgdesc="Web app for browsing, reading and downloading eBooks stored in a Calibre database"
arch='noarch'
url="https://github.com/janeczku/calibre-web"
@ -10,26 +10,27 @@ license='GPL-3.0-only'
depends="
py3-apscheduler
py3-babel
py3-backports_abc
py3-blinker
py3-bleach
py3-chardet
py3-cryptography
py3-flask-babel
py3-flask-login
py3-flask-limiter
py3-flask-principal
py3-flask-wtf
py3-goodreads
py3-levenshtein
py3-iso639
py3-flask-httpauth
py3-lxml
py3-pypdf2
py3-magic
py3-netifaces
py3-pypdf
py3-pycountry
py3-regex
py3-requests
py3-sqlalchemy
py3-tornado
py3-tz
py3-unidecode
py3-urllib3
py3-wand
py3-werkzeug
"
source="
$pkgname-$pkgver.tar.gz::https://github.com/janeczku/calibre-web/archive/$pkgver.tar.gz
@ -56,7 +57,7 @@ package() {
install -D -m 644 "$srcdir"/calibre-web.conf "$pkgdir"/etc/conf.d/calibre-web
}
sha512sums="
d2f07eec0b6c9f65e68ae0b72fddd14444eb8be8b0fee997ec7caaa1feebb8a26603844752347547becde501669af5bce69e9eab466a28fd4b10624b65c9afcf calibre-web-0.6.21.tar.gz
878d057613b7f89e57ad536c415bb4dc346d5f8c4ca2660517b68c70c4eefa5358317fe0e917738d468cb003358a0341411155289d952b1aa6cd4a022a84c8f0 calibre-web-0.6.25.tar.gz
4aba825eb12f44eb0912cc6981b46bec9b77ad114627564c9c7585862a099c7d1ff8deec5f15d047319805e2b9a3e2d128b2d1292dd92293a7e72359009a480f calibre-web.conf
62859a8a304216dc0dbfb7f2e8144a50d348c6621f5b292c08aa97a872ada67b52d36b567546fd0f4c439dbefe0bbe0e4fb1e1affbe507278b4a8d36ed3fa2a9 calibre-web.initd
"