1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 blinker,
6 flit-core,
7 flask,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "flask-mail";
13 version = "0.10.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "pallets-eco";
18 repo = "flask-mail";
19 tag = version;
20 hash = "sha256-G2Z8dj1/IuLsZoNJVrL6LYu0XjTEHtWB9Z058aqG9Ic=";
21 };
22
23 build-system = [ flit-core ];
24
25 dependencies = [
26 blinker
27 flask
28 ];
29
30 pythonImportsCheck = [ "flask_mail" ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 disabledTests = [
35 # Broken by fix for CVE-2023-27043.
36 # Reported upstream in https://github.com/pallets-eco/flask-mail/issues/233
37 "test_unicode_sender_tuple"
38 "test_unicode_sender"
39 ];
40
41 meta = {
42 description = "Flask extension providing simple email sending capabilities";
43 homepage = "https://github.com/pallets-eco/flask-mail";
44 changelog = "https://github.com/pallets-eco/flask-mail/blob/${src.rev}/CHANGES.md";
45 license = lib.licenses.bsd3;
46 };
47}