update dependencies and add tests

This commit is contained in:
sudacode 2025-03-13 18:11:40 -07:00
parent 85b8efb24e
commit 57d9ffe084
Signed by: sudacode
SSH Key Fingerprint: SHA256:lT5C2bB398DcX6daCF/gYFNSTK3y+Du3oTGUnYzfTEw
2 changed files with 39 additions and 9 deletions

View File

@ -3,18 +3,32 @@ pkgbase = mokuro
pkgver = 0.2.2
pkgrel = 1
url = https://github.com/kha-white/mokuro
arch = any
license = GPL3
arch = x86_64
license = GPL-3.0
checkdepends = python-pytest
makedepends = python-pip
makedepends = python-build
makedepends = python-wheel
makedepends = python-installer
makedepends = python-setuptools
depends = python>=3.6
depends = python-opencv
depends = python-torch-summary
depends = python-shapely
depends = python-yattag
optdepends = python-pytorch: for gpu acceleration
depends = python-tqdm
depends = python-loguru
depends = python-scipy
depends = python-pytorch
depends = python-torchvision
depends = python-pyclipper
depends = python-fire
depends = python-natsort
depends = python-numpy
depends = python-pillow>=7.1.2
depends = python-transformers>=4.25.0
depends = python-safetensors>=0.4.1
depends = python-manga-ocr
source = https://files.pythonhosted.org/packages/source/m/mokuro/mokuro-0.2.2.tar.gz
sha256sums = 7534d32d1e25ac7be8a828d328be9aceb06a05d3c3392721120410f4cff02fe3

View File

@ -4,23 +4,39 @@ _name=mokuro
pkgver=0.2.2
pkgrel=1
pkgdesc="Read Japanese manga inside browser with selectable text. "
arch=('any')
arch=('x86_64')
url="https://github.com/kha-white/mokuro"
license=('GPL3')
license=('GPL-3.0')
depends=(
'python>=3.6'
'python-opencv'
'python-torch-summary'
'python-shapely'
'python-yattag'
'python-tqdm'
'python-loguru'
'python-scipy'
'python-pytorch'
'python-torchvision'
'python-pyclipper'
'python-fire'
'python-natsort'
'python-numpy'
'python-pillow>=7.1.2'
'python-transformers>=4.25.0'
'python-safetensors>=0.4.1'
'python-manga-ocr'
)
optdepends=(
'python-pytorch: for gpu acceleration'
)
makedepends=('python-pip' 'python-build' 'python-wheel' 'python-installer')
makedepends=('python-pip' 'python-build' 'python-wheel' 'python-installer' 'python-setuptools')
checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz")
sha256sums=('7534d32d1e25ac7be8a828d328be9aceb06a05d3c3392721120410f4cff02fe3')
check() {
cd "$_name-$pkgver"
pytest -o addopts=""
}
build() {
cd "$_name-$pkgver"
python -m pip wheel . --no-deps --wheel-dir dist