summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 21cc1f05f4db51d1b179c203fdfacd59b74d425e (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
# Maintainer: SandaruKasa <sandarukasa plus aur at ya dot ru>

pkgname=python-pyrofork-git
provides=("${pkgname%-git}" python-pyrogram)
conflicts=("${pkgname%-git}" python-pyrogram)
replaces=(python-pyrogram) # pyrogram is dead
pkgver=2.3.19.r4369.dee698f
pkgrel=2
pkgdesc="Pyrogram fork with Adjustable web page preview, Quote Reply, Story & Topics Support, Mongodb session storage, and much more."
arch=("any")
url="https://github.com/Mayuri-Chan/pyrofork"
license=("LGPL-3.0-or-later")
depends=("python" "python-aiosqlite" "python-pyaes" "python-pysocks" "python-pymediainfo")
optdepends=(
  "python-tgcrypto: faster cryptography"
  "python-uvloop: fast, drop-in replacement of the built-in asyncio event loop"
)
makedepends=("git" "python-build" "python-installer" "python-wheel" "python-hatchling")
checkdepends=("python-pytest" "python-pytest-asyncio" "python-pytest-cov")
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  printf "%s.r%s.%s" "$(python -m hatchling version)" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

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

check() {
  cd "${pkgname}"
  pytest
}

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