evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / fastapi-mail / default.nix
blob16a3e0c676661846af71792ffd0f3353cc7f5eb7
2   lib,
3   aioredis,
4   aiosmtplib,
5   blinker,
6   buildPythonPackage,
7   email-validator,
8   fakeredis,
9   fastapi,
10   fetchFromGitHub,
11   httpx,
12   jinja2,
13   poetry-core,
14   pydantic,
15   pydantic-settings,
16   pytest-asyncio,
17   pytestCheckHook,
18   python-multipart,
19   pythonOlder,
22 buildPythonPackage rec {
23   pname = "fastapi-mail";
24   version = "1.4.1";
25   pyproject = true;
27   disabled = pythonOlder "3.8";
29   src = fetchFromGitHub {
30     owner = "sabuhish";
31     repo = "fastapi-mail";
32     rev = "refs/tags/${version}";
33     hash = "sha256-2iTZqZIxlt1GKhElasTcnys18UbNNDwHoZziHBOIGBo=";
34   };
36   pythonRelaxDeps = [
37     "aiosmtplib"
38     "pydantic"
39   ];
41   postPatch = ''
42     substituteInPlace pyproject.toml \
43       --replace-fail 'version = "1.2.5"' 'version = "${version}"'
44   '';
46   build-system = [ poetry-core ];
48   dependencies = [
49     aioredis
50     aiosmtplib
51     blinker
52     email-validator
53     fakeredis
54     fastapi
55     httpx
56     jinja2
57     pydantic
58     pydantic-settings
59     python-multipart
60   ];
62   nativeCheckInputs = [
63     pytest-asyncio
64     pytestCheckHook
65   ];
67   disabledTests = [
68     # Tests require access to /etc/resolv.conf
69     "test_default_checker"
70     "test_redis_checker"
71   ];
73   pythonImportsCheck = [ "fastapi_mail" ];
75   meta = with lib; {
76     description = "Module for sending emails and attachments";
77     homepage = "https://github.com/sabuhish/fastapi-mail";
78     changelog = "https://github.com/sabuhish/fastapi-mail/releases/tag/${version}";
79     license = with licenses; [ mit ];
80     maintainers = with maintainers; [ fab ];
81   };