12 buildPythonPackage rec {
13 pname = "python-telegram";
15 format = "setuptools";
16 disabled = pythonOlder "3.6";
18 src = fetchFromGitHub {
19 owner = "alexander-akhmetov";
20 repo = "python-telegram";
22 hash = "sha256-2Q0nUZ2TMVWznd05+fqYojkRn4xfFZJrlqb1PMuBsAY=";
26 # Remove bundled libtdjson
29 substituteInPlace telegram/tdjson.py \
30 --replace "ctypes.util.find_library(\"tdjson\")" \
31 "\"${tdlib}/lib/libtdjson${stdenv.hostPlatform.extensions.sharedLibrary}\""
34 propagatedBuildInputs = [
44 "TestGetTdjsonTdlibPath"
47 pythonImportsCheck = [
52 description = "Python client for the Telegram's tdlib";
53 homepage = "https://github.com/alexander-akhmetov/python-telegram";
54 license = licenses.mit;
55 maintainers = with maintainers; [ sikmir ];