From dd13d93bc3f8453d5323d737b14264484020140a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 25 Nov 2024 19:32:03 +0100 Subject: [PATCH] python312Packages.fastapi-mail: 1.4.1 -> 1.4.2 Diff: https://github.com/sabuhish/fastapi-mail/compare/refs/tags/1.4.1...1.4.2 Changelog: https://github.com/sabuhish/fastapi-mail/releases/tag/1.4.2 --- .../python-modules/fastapi-mail/default.nix | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/fastapi-mail/default.nix b/pkgs/development/python-modules/fastapi-mail/default.nix index 16a3e0c67666..9fb8d61ee0cc 100644 --- a/pkgs/development/python-modules/fastapi-mail/default.nix +++ b/pkgs/development/python-modules/fastapi-mail/default.nix @@ -1,27 +1,26 @@ { lib, - aioredis, aiosmtplib, blinker, buildPythonPackage, email-validator, fakeredis, - fastapi, fetchFromGitHub, httpx, jinja2, poetry-core, - pydantic, pydantic-settings, + pydantic, pytest-asyncio, pytestCheckHook, - python-multipart, pythonOlder, + redis, + starlette, }: buildPythonPackage rec { pname = "fastapi-mail"; - version = "1.4.1"; + version = "1.4.2"; pyproject = true; disabled = pythonOlder "3.8"; @@ -30,7 +29,7 @@ buildPythonPackage rec { owner = "sabuhish"; repo = "fastapi-mail"; rev = "refs/tags/${version}"; - hash = "sha256-2iTZqZIxlt1GKhElasTcnys18UbNNDwHoZziHBOIGBo="; + hash = "sha256-QypW7yE5jBkS1Q4XPIOktWnCmCXGoUzZF/SdWmFsPX8="; }; pythonRelaxDeps = [ @@ -38,27 +37,24 @@ buildPythonPackage rec { "pydantic" ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail 'version = "1.2.5"' 'version = "${version}"' - ''; - build-system = [ poetry-core ]; dependencies = [ - aioredis aiosmtplib blinker email-validator fakeredis - fastapi - httpx jinja2 pydantic pydantic-settings - python-multipart + starlette ]; + optional-dependencies = { + httpx = [ httpx ]; + redis = [ redis ]; + }; + nativeCheckInputs = [ pytest-asyncio pytestCheckHook