summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be7bffa95d8a9eda0d1b20947f9bdd074da37f94 (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: Tim Henkes <me+aur@syndace.dev>
# Contributor: Maxime "pep" Buquet <archlinux@bouah.net>
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Riccardo Berto <riccardobrt@gmail.com>

pkgname="python-omemo"
pkgver=2.1.0
pkgrel=2
pkgdesc="An open python implementation of the OMEMO Multi-End Message and Object Encryption protocol."
arch=("any")
url="https://github.com/Syndace/python-omemo"
license=("MIT")
depends=(
    "python"
    "python-typing_extensions"
    "python-xeddsa"
)
makedepends=(
    "python-build"
    "python-installer"
    "python-setuptools"
    "python-wheel"
)
#checkdepends=(
#    "python-oldmemo"
#    "python-twomemo"
#    "python-twisted"
#    "python-pytest"
#    "python-pytest-asyncio"
#    "python-xmlschema"
#)
optdepends=(
    "python-prettytable: for the optional cli"
    "python-twisted: alternative async backend"
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Syndace/python-omemo/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=("49fb4597996dc0b4cc4fa2696a77b9e3c5af601e2f83462e811d0683d182635d")

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

#check() {
#    cd "${pkgname}-${pkgver}"
#    pytest -o addopts=""
#}

package() {
    cd "${pkgname}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}