about summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-login/default.nix
blob: ce9da8b158dc49bd32eadf3a6a0cdcaf9df2eb2d (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
47
48
49
50
51
52
53
54
55
56
57
58
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,

  # build-system
  flit-core,

  # dependencies
  flask,
  werkzeug,

  # tests
  asgiref,
  blinker,
  pytestCheckHook,
  semantic-version,
}:

buildPythonPackage rec {
  pname = "flask-login";
  version = "0.7.0dev0-2024-06-18";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "maxcountryman";
    repo = "flask-login";
    rev = "30675c56b651389d47b47eeb1ad114decb35b8fc";
    hash = "sha256-mIEYZnYWerjCetQuV2HRcmerMh2uLWNvHV7tfo5j4PU=";
  };

  build-system = [ flit-core ];

  dependencies = [
    flask
    werkzeug
  ];

  pythonImportsCheck = [ "flask_login" ];

  nativeCheckInputs = [
    asgiref
    blinker
    pytestCheckHook
    semantic-version
  ];

  meta = with lib; {
    changelog = "https://github.com/maxcountryman/flask-login/blob/${version}/CHANGES.md";
    description = "User session management for Flask";
    homepage = "https://github.com/maxcountryman/flask-login";
    license = licenses.mit;
    maintainers = with maintainers; [ abbradar ];
  };
}