diff options
author | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2023-12-30 00:16:13 -0500 |
---|---|---|
committer | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2023-12-30 11:16:28 -0500 |
commit | 5ae05cc9e7560087be47584be9892a76196b7167 (patch) | |
tree | 3de2b185399152c409283c2cb1ac0cd7fa0132f1 /pkgs/development/python-modules/aiogram/default.nix | |
parent | 356d12c562c021ad6e1d097364ce34e57a727760 (diff) |
python3Packages.aiogram: fix build
Diffstat (limited to 'pkgs/development/python-modules/aiogram/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aiogram/default.nix | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/aiogram/default.nix b/pkgs/development/python-modules/aiogram/default.nix index 1f244ac054f5d..0dc72bc2006ab 100644 --- a/pkgs/development/python-modules/aiogram/default.nix +++ b/pkgs/development/python-modules/aiogram/default.nix @@ -6,6 +6,7 @@ , aiohttp , aiohttp-socks , aioredis +, aiofiles , aresponses , babel , certifi @@ -13,13 +14,16 @@ , pytest-asyncio , pytest-lazy-fixture , redis +, hatchling +, pydantic +, pytz , gitUpdater }: buildPythonPackage rec { pname = "aiogram"; version = "3.2.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -30,18 +34,17 @@ buildPythonPackage rec { hash = "sha256-8SYrg+gfNSTR0CTPf4cYDa4bfA0LPBmZtPcATF22fqw="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace "aiohttp>=3.8.0,<3.9.0" "aiohttp" \ - --replace "Babel>=2.9.1,<2.10.0" "Babel" \ - --replace "magic-filter>=1.0.9" "magic-filter" - ''; + nativeBuildInputs = [ + hatchling + ]; propagatedBuildInputs = [ + aiofiles aiohttp babel certifi magic-filter + pydantic ]; nativeCheckInputs = [ @@ -51,13 +54,14 @@ buildPythonPackage rec { pytest-asyncio pytest-lazy-fixture pytestCheckHook + pytz redis ]; - # requires network + # import failures disabledTests = [ - "test_download_file_404" - "test_download_404" + "test_aiohtt_server" + "test_deep_linking" ]; pythonImportsCheck = [ "aiogram" ]; |