generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flask-session2.nix
56 lines (48 loc) · 1.37 KB
/
flask-session2.nix
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
{ lib
, python3
, fetchPypi
, fetchFromGitHub
}:
python3.pkgs.buildPythonApplication rec {
pname = "flask-session2";
version = "1.3.1";
#version = "1.3.1.2023.06.12";
#version = "1.3.1-unstable-2023-06-12";
format = "pyproject";
src = fetchPypi {
pname = "Flask-Session2";
inherit version;
hash = "sha256-Fx6YbU4xR5X0SKUnCV5C32q/unbD5M5cjkxhyFfFnLI=";
};
/*
# https://github.com/christopherpickering/flask-session2
src = fetchFromGitHub {
owner = "christopherpickering";
repo = "flask-session2";
rev = "efc14774e7aa55486ac70e0f3600d25fb762321c";
sha256 = "sha256-Dpk1P9nK7DeoT868O6C86HrsP0X0VMknt0xOjcF+PA4=";
};
*/
# fix: ERROR: Could not find a version that satisfies the requirement cachelib<0.10.0,>=0.9.0
# a: cachelib = "^0.9.0"
# b: cachelib = "*"
postPatch = ''
sed -i -E 's/= "\^[^"]+"/= "*"/' pyproject.toml
'';
nativeBuildInputs = [
python3.pkgs.poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
cachelib
flask
pytz
];
pythonImportsCheck = [ "flask_session" ];
meta = with lib; {
description = "Adds server-side session support to your Flask application";
#homepage = "https://pypi.org/project/flask-session2";
homepage = "https://github.com/christopherpickering/flask-session2";
license = with licenses; [ bsd3 bsd2 ];
maintainers = with maintainers; [ ];
};
}