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