1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, mkdocs-material-extensions
6, flask
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "flask-mailman";
13 version = "0.3.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "waynerv";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "sha256-cfLtif+48M6fqOkBbi4PJRFpf9FRXCPesktFQky34eU=";
23 };
24
25 nativeBuildInputs = [
26 poetry-core
27 ];
28
29 propagatedBuildInputs = [
30 flask
31 mkdocs-material-extensions
32 ];
33
34 checkInputs = [
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "flask_mailman" ];
39
40 meta = with lib; {
41 homepage = "https://github.com/waynerv/flask-mailman";
42 description = "Flask extension providing simple email sending capabilities.";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ gador ];
45 };
46}