summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b937ccb1d30b4a077072c32e118cc53558325e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Lex Black <autumn-wind@web.de>

pkgname=papermerge-core
pkgver=3.5.3
pkgrel=1
pkgdesc="Open Source Document Management System for Digital Archives (server)"
arch=(any)
url="https://github.com/papermerge/papermerge-core"
license=(Apache)
depends=(
         img2pdf
         python-aiofiles
         python-alembic
         python-asyncpg
         python-celery
         python-fastapi
         python-magic
         python-mysqlclient
         python-passlib
         python-pdf2image
         python-pydantic-settings
         python-pytz
         python-redis
         python-rich
         python-salinic
         python-sqlalchemy
         python-taskipy
         python-typer
         python-uritemplate
         python-yaml
         uvicorn
)
makedepends=(python-build python-installer python-wheel python-poetry-core python-setuptools)
source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz
        0001_adj-pyproject.patch)
sha256sums=('ede9a07abe492bc7437d6a1320fe4954753f06d3af6100abe1ad3675ad5acfc2'
            '7e7bf9a48749f2b90209ec5d3bb8ee9784bc889b415e2ebb69878ce8dd0b2234')


prepare() {
  cd "${pkgname}-${pkgver}"
  patch -Np2 -i "${srcdir}"/0001_adj-pyproject.patch
}

build() {
  cd "${pkgname}-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${pkgname}-${pkgver}"
  python -m installer --destdir="$pkgdir" dist/*.whl
}