mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 12:00:20 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
126 lines
2.2 KiB
Nix
126 lines
2.2 KiB
Nix
{ 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.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-34Apzy7id+fDxTN935hPT0HeZNZMEdQqZ0aiV0trAxE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiolimiter
|
|
APScheduler
|
|
cachetools
|
|
cryptography
|
|
httpx
|
|
pytz
|
|
] ++ httpx.optional-dependencies.socks;
|
|
|
|
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 ];
|
|
};
|
|
}
|