2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, aiohttp
|
|
|
|
, aiohttp-socks
|
|
|
|
, aioredis
|
2024-01-13 08:15:51 +00:00
|
|
|
, aiofiles
|
2023-08-04 22:07:22 +00:00
|
|
|
, aresponses
|
|
|
|
, babel
|
|
|
|
, certifi
|
|
|
|
, magic-filter
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-lazy-fixture
|
|
|
|
, redis
|
2024-01-13 08:15:51 +00:00
|
|
|
, hatchling
|
|
|
|
, pydantic
|
|
|
|
, pytz
|
|
|
|
, gitUpdater
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiogram";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "3.3.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aiogram";
|
|
|
|
repo = "aiogram";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-TD4pDmM899zBOxllM0iju2u6IhmXxLYWBpjfWhewVFc=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
aiofiles
|
2023-08-04 22:07:22 +00:00
|
|
|
aiohttp
|
|
|
|
babel
|
|
|
|
certifi
|
|
|
|
magic-filter
|
2024-01-13 08:15:51 +00:00
|
|
|
pydantic
|
2023-08-04 22:07:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
aiohttp-socks
|
|
|
|
aioredis
|
|
|
|
aresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-lazy-fixture
|
|
|
|
pytestCheckHook
|
2024-01-13 08:15:51 +00:00
|
|
|
pytz
|
2023-08-04 22:07:22 +00:00
|
|
|
redis
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
# import failures
|
2023-10-09 19:29:22 +00:00
|
|
|
disabledTests = [
|
2024-01-13 08:15:51 +00:00
|
|
|
"test_aiohtt_server"
|
|
|
|
"test_deep_linking"
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
pythonImportsCheck = [ "aiogram" ];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Modern and fully asynchronous framework for Telegram Bot API";
|
|
|
|
homepage = "https://github.com/aiogram/aiogram";
|
|
|
|
changelog = "https://github.com/aiogram/aiogram/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
};
|
|
|
|
}
|