1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flask,
6 itsdangerous,
7 markupsafe,
8 pytestCheckHook,
9 requests,
10 setuptools,
11 werkzeug,
12}:
13
14buildPythonPackage rec {
15 pname = "flask-unsign";
16 version = "1.2.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "Paradoxis";
21 repo = "Flask-Unsign";
22 tag = "v${version}";
23 hash = "sha256-/WK3g6Ef3mSKeT3aaSAh5J8estUN4sNmM9Tq9An/18A=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 flask
30 itsdangerous
31 markupsafe
32 requests
33 werkzeug
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 pythonImportsCheck = [ "flask_unsign" ];
39
40 enabledTestPaths = [ "tests/flask_unsign.py" ];
41
42 meta = {
43 description = "Command line tool to fetch, decode, brute-force and craft session cookies of Flask applications";
44 homepage = "https://github.com/Paradoxis/Flask-Unsign";
45 changelog = "https://github.com/Paradoxis/Flask-Unsign/releases/tag/${src.tag}";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ fab ];
48 mainProgram = "flask-unsign";
49 };
50}