evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / telethon / default.nix
blobab0a973a86e1b1a9084107629dd4bbc8b85f0db4
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   openssl,
6   rsa,
7   pyaes,
8   cryptg,
9   pythonOlder,
10   setuptools,
11   pytest-asyncio,
12   pytestCheckHook,
15 buildPythonPackage rec {
16   pname = "telethon";
17   version = "1.37.0";
18   pyproject = true;
20   disabled = pythonOlder "3.5";
22   src = fetchFromGitHub {
23     owner = "LonamiWebs";
24     repo = "Telethon";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-P7FP+Wqi3dqbBCFpI9aCDvK4k3mWv8076RO6MXg+jFQ=";
27   };
29   patchPhase = ''
30     substituteInPlace telethon/crypto/libssl.py --replace-fail \
31       "ctypes.util.find_library('ssl')" "'${lib.getLib openssl}/lib/libssl.so'"
32   '';
34   build-system = [
35     setuptools
36   ];
38   dependencies = [
39     pyaes
40     rsa
41   ];
43   optional-dependencies = {
44     cryptg = [ cryptg ];
45   };
47   nativeCheckInputs = [
48     pytest-asyncio
49     pytestCheckHook
50   ];
52   disabledTests = [
53     # https://github.com/LonamiWebs/Telethon/issues/4254
54     "test_all_methods_present"
55     "test_private_get_extension"
56   ];
58   meta = {
59     homepage = "https://github.com/LonamiWebs/Telethon";
60     description = "Full-featured Telegram client library for Python 3";
61     license = lib.licenses.mit;
62     maintainers = with lib.maintainers; [ nyanloutre ];
63   };