1{
2 lib,
3 fetchFromGitHub,
4 python3,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "forbidden";
9 version = "13.2";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "ivan-sincek";
14 repo = "forbidden";
15 tag = "v${version}";
16 hash = "sha256-DQ8zjiLTgBBoqp8AP5BYULz4KGnVEt8e7bkfYRGWvFw=";
17 };
18
19 build-system = with python3.pkgs; [ setuptools ];
20
21 dependencies = with python3.pkgs; [
22 alive-progress
23 bot-safe-agents
24 colorama
25 cryptography
26 pycurl
27 pyjwt
28 regex
29 requests
30 tabulate
31 termcolor
32 ];
33
34 # Project has no tests
35 doCheck = false;
36
37 pythonImportsCheck = [ "forbidden" ];
38
39 meta = {
40 description = "Tool to bypass 4xx HTTP response status code";
41 homepage = "https://github.com/ivan-sincek/forbidden";
42 changelog = "https://github.com/ivan-sincek/forbidden/releases/tag/${src.tag}";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ fab ];
45 mainProgram = "forbidden";
46 };
47}