python312Packages.telethon: 1.26.1 -> 1.37.0, modernize (#350547)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
openssl,
|
||||
rsa,
|
||||
pyaes,
|
||||
cryptg,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
pytest-asyncio,
|
||||
@@ -13,40 +14,51 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "telethon";
|
||||
version = "1.26.1";
|
||||
format = "pyproject";
|
||||
version = "1.37.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LonamiWebs";
|
||||
repo = "Telethon";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-RxnC+PVSnLeCZ1xap6n6CjpeA8Ig6oLGiB0LDxqUmsA=";
|
||||
hash = "sha256-P7FP+Wqi3dqbBCFpI9aCDvK4k3mWv8076RO6MXg+jFQ=";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace telethon/crypto/libssl.py --replace \
|
||||
substituteInPlace telethon/crypto/libssl.py --replace-fail \
|
||||
"ctypes.util.find_library('ssl')" "'${lib.getLib openssl}/lib/libssl.so'"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
rsa
|
||||
pyaes
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
pyaes
|
||||
rsa
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
cryptg = [ cryptg ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests/telethon" ];
|
||||
disabledTests = [
|
||||
# https://github.com/LonamiWebs/Telethon/issues/4254
|
||||
"test_all_methods_present"
|
||||
"test_private_get_extension"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
homepage = "https://github.com/LonamiWebs/Telethon";
|
||||
description = "Full-featured Telegram client library for Python 3";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ nyanloutre ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user