mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 12:22:26 +01:00
testing/py3-telegram: upgrade to 0.16.0
This commit is contained in:
parent
77dc106d71
commit
7d3528faad
@ -1,27 +0,0 @@
|
||||
diff --git a/telegram/tdjson.py b/telegram/tdjson.py
|
||||
index 091145e..21c0361 100644
|
||||
--- a/telegram/tdjson.py
|
||||
+++ b/telegram/tdjson.py
|
||||
@@ -2,6 +2,7 @@ import json
|
||||
import logging
|
||||
import platform
|
||||
from ctypes import CDLL, CFUNCTYPE, c_int, c_char_p, c_double, c_void_p, c_longlong
|
||||
+from ctypes.util import find_library
|
||||
from typing import Any, Dict, Optional, Union
|
||||
|
||||
import pkg_resources
|
||||
@@ -10,13 +11,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def _get_tdjson_lib_path() -> str:
|
||||
- if platform.system().lower() == 'darwin':
|
||||
- lib_name = 'darwin/libtdjson.dylib'
|
||||
- else:
|
||||
- lib_name = 'linux/libtdjson.so'
|
||||
-
|
||||
- return pkg_resources.resource_filename('telegram', f'lib/{lib_name}')
|
||||
-
|
||||
+ return find_library("tdjson")
|
||||
|
||||
class TDJson:
|
||||
def __init__(self, library_path: Optional[str] = None, verbosity: int = 2) -> None:
|
||||
@ -2,19 +2,17 @@
|
||||
# Maintainer: j.r <j.r@jugendhacker.de>
|
||||
pkgname=py3-telegram
|
||||
_pyname=python-telegram
|
||||
pkgver=0.15.0
|
||||
pkgrel=3
|
||||
pkgver=0.16.0
|
||||
pkgrel=0
|
||||
pkgdesc="Python client for the Telegram's tdlib"
|
||||
url="https://github.com/alexander-akhmetov/python-telegram"
|
||||
arch="noarch !s390x"
|
||||
license="MIT"
|
||||
depends="python3 telegram-tdlib>=1.7.9"
|
||||
depends="python3 telegram-tdlib"
|
||||
makedepends="py3-setuptools"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pyname%"${_pyname#?}"}/$_pyname/$_pyname-$pkgver.tar.gz
|
||||
https://raw.githubusercontent.com/alexander-akhmetov/python-telegram/$pkgver/LICENSE
|
||||
0001-Use-system-tdlib.patch
|
||||
0002-Remove-binarys.patch"
|
||||
0002-Remove-binarys.patch
|
||||
"
|
||||
builddir="$srcdir/$_pyname-$pkgver/"
|
||||
options="!check"
|
||||
|
||||
@ -24,13 +22,9 @@ build() {
|
||||
|
||||
package() {
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
|
||||
install -Dm644 $srcdir/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
43b58439ac414f69787262eff3656227e89dec4eedfbb13c1fce56555605d9b747d20cb1e2b5850b8649615873a8f1d9ebdcb8d5a1a2f12adeeada5757b2bb5b python-telegram-0.15.0.tar.gz
|
||||
b038c7b0c6138ff6f215a45d0da25ac8e3b52e3849087e90f68d3ebe246fbcd17c1f78f2ee3c020bfc759334d35709a1ac28b71c74091912dbf165785a3f5895 LICENSE
|
||||
7521f123e0d3719eb8db2a6c2b120377f1ee9dbd235ad92cc91ab5b5e4ce0884692721a4fc478c8058038d24b8cae8dd8a0e5eed8d568bc769bdc80b8f2e3327 0001-Use-system-tdlib.patch
|
||||
673aae05de044114311c26735df9e591a42ab8a30dfdf41005225d944583a01ba8620ef5e37bb08db5c9a457e7d2e4ec865295e8fdab03bfb8dcdcb30932500c python-telegram-0.16.0.tar.gz
|
||||
8c24db516797f8ffa8695b31be6364087ed9e6cfb9fc49bc8f68fdcb259b88dcf786afa71d30848bad50c4a201ea8d09f28fb5b86da023404f7ef6c4d17d3447 0002-Remove-binarys.patch
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user