1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flask,
6 flask-migrate,
7 ldap3,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "automx2";
15 version = "2024.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "rseichter";
22 repo = "automx2";
23 rev = version;
24 hash = "sha256-s/kd9A/d3SPMZC9+B4DdcXVi77WLH/SBwXIdaKHUj34=";
25 };
26
27 nativeBuildInputs = [ setuptools ];
28
29 propagatedBuildInputs = [
30 flask
31 flask-migrate
32 ldap3
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "automx2" ];
38
39 meta = with lib; {
40 description = "Email client configuration made easy";
41 homepage = "https://rseichter.github.io/automx2/";
42 changelog = "https://github.com/rseichter/automx2/blob/${version}/CHANGELOG";
43 license = licenses.gpl3Plus;
44 maintainers = with maintainers; [ twey ];
45 };
46}