Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.3 kB · 127 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128{ lib, aiolimiter, apscheduler, beautifulsoup4, buildPythonPackage, cachetools, cryptography, fetchFromGitHub, flaky, httpx, pytest-asyncio, pytest-timeout, pytest-xdist, pytestCheckHook, pythonOlder, pytz, tornado}:
buildPythonPackage rec { pname = "python-telegram-bot"; version = "20.2"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = pname; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-OdjTlVUjlw+5K/kvL1Yx+7c/lIE52udUo6Ux18M9xmE="; };
propagatedBuildInputs = [ aiolimiter apscheduler cachetools cryptography httpx pytz ] ++ httpx.optional-dependencies.socks ++ httpx.optional-dependencies.http2;
nativeCheckInputs = [ beautifulsoup4 flaky pytest-asyncio pytest-timeout pytest-xdist pytestCheckHook tornado ];
pythonImportsCheck = [ "telegram" ];
disabledTests = [ # Tests require network access "TestAIO" "TestAnimation" "TestApplication" "TestAudio" "TestBase" "TestBot" "TestCallback" "TestChat" "TestChosenInlineResult" "TestCommandHandler" "TestConstants" "TestContact" "TestConversationHandler" "TestDice" "TestDict" "TestDocument" "TestFile" "TestForceReply" "TestForum" "TestGame" "TestGet" "TestHTTP" "TestInline" "TestInput" "TestInvoice" "TestJob" "TestKeyboard" "TestLocation" "TestMask" "TestMenu" "TestMessage" "TestMeta" "TestOrder" "TestPassport" "TestPhoto" "TestPickle" "TestPoll" "TestPre" "TestPrefix" "TestProximity" "TestReply" "TestRequest" "TestSend" "TestSent" "TestShipping" "TestSlot" "TestSticker" "TestString" "TestSuccess" "TestTelegram" "TestType" "TestUpdate" "TestUser" "TestVenue" "TestVideo" "TestVoice" "TestWeb" ];
meta = with lib; { description = "Python library to interface with the Telegram Bot API"; homepage = "https://python-telegram-bot.org"; changelog = "https://github.com/python-telegram-bot/python-telegram-bot/blob/v${version}/CHANGES.rst"; license = licenses.lgpl3Only; maintainers = with maintainers; [ veprbl pingiun ]; };}