nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 flit-core,
8
9 # dependencies
10 flask,
11 werkzeug,
12
13 # tests
14 asgiref,
15 blinker,
16 pytestCheckHook,
17 semantic-version,
18}:
19
20buildPythonPackage rec {
21 pname = "flask-login";
22 version = "0.7.0dev0-2024-06-18";
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "maxcountryman";
27 repo = "flask-login";
28 rev = "30675c56b651389d47b47eeb1ad114decb35b8fc";
29 hash = "sha256-mIEYZnYWerjCetQuV2HRcmerMh2uLWNvHV7tfo5j4PU=";
30 };
31
32 build-system = [ flit-core ];
33
34 dependencies = [
35 flask
36 werkzeug
37 ];
38
39 pythonImportsCheck = [ "flask_login" ];
40
41 nativeCheckInputs = [
42 asgiref
43 blinker
44 pytestCheckHook
45 semantic-version
46 ];
47
48 meta = {
49 changelog = "https://github.com/maxcountryman/flask-login/blob/${version}/CHANGES.md";
50 description = "User session management for Flask";
51 homepage = "https://github.com/maxcountryman/flask-login";
52 license = lib.licenses.mit;
53 maintainers = [ ];
54 };
55}