depot/third_party/nixpkgs/pkgs/development/python-modules/aiogram/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

91 lines
1.6 KiB
Nix

{
lib,
aiofiles,
aiohttp,
aiohttp-socks,
aresponses,
babel,
buildPythonPackage,
certifi,
fetchFromGitHub,
gitUpdater,
hatchling,
magic-filter,
motor,
pycryptodomex,
pydantic,
pymongo,
pytest-aiohttp,
pytest-asyncio,
pytest-lazy-fixture,
pytestCheckHook,
pythonOlder,
pythonRelaxDepsHook,
pytz,
redis,
}:
buildPythonPackage rec {
pname = "aiogram";
version = "3.7.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "aiogram";
repo = "aiogram";
rev = "refs/tags/v${version}";
hash = "sha256-GIfujywp+yYRQ4xm6O5GgTCMn6I3TSYE5epaqhMGGnE=";
};
build-system = [ hatchling ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = [ "pydantic" ];
dependencies = [
aiofiles
aiohttp
babel
certifi
magic-filter
pydantic
];
nativeCheckInputs = [
aiohttp-socks
aresponses
motor
pycryptodomex
pymongo
pytest-aiohttp
pytest-asyncio
pytest-lazy-fixture
pytestCheckHook
pytz
redis
];
pytestFlagsArray = [
"-W"
"ignore::pluggy.PluggyTeardownRaisedWarning"
"-W"
"ignore::pytest.PytestDeprecationWarning"
"-W"
"ignore::DeprecationWarning"
];
pythonImportsCheck = [ "aiogram" ];
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
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 ];
};
}