about summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-mailman/default.nix
blob: f0cd2e5e147bae5d6c9872e273e887526fb838c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, mkdocs-material-extensions
, flask
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "flask-mailman";
  version = "0.3.0";
  format = "pyproject";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "waynerv";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-cfLtif+48M6fqOkBbi4PJRFpf9FRXCPesktFQky34eU=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    flask
    mkdocs-material-extensions
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "flask_mailman" ];

  meta = with lib; {
    homepage = "https://github.com/waynerv/flask-mailman";
    description = "Flask extension providing simple email sending capabilities.";
    license = licenses.bsd3;
    maintainers = with maintainers; [ gador ];
  };
}