diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-03-25 23:54:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-25 23:54:58 +0100 |
commit | aee704f1224208bb7ea1941ec6053ee4115cc75b (patch) | |
tree | 80d4a21e0b8ecfda383c7260a10a7d7284a1c84a /pkgs/by-name/fo | |
parent | 6ade60baf6ba03970653164de9f0299d60a5ff14 (diff) | |
parent | 67c188883265883818b60c0eecb6b62cc7a43b9f (diff) |
Merge pull request #298895 from fabaff/forbidden
forbidden: init at 10.8
Diffstat (limited to 'pkgs/by-name/fo')
-rw-r--r-- | pkgs/by-name/fo/forbidden/package.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/by-name/fo/forbidden/package.nix b/pkgs/by-name/fo/forbidden/package.nix new file mode 100644 index 0000000000000..adbd83ada4b08 --- /dev/null +++ b/pkgs/by-name/fo/forbidden/package.nix @@ -0,0 +1,51 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "forbidden"; + version = "10.8"; + pyproject = true; + + src = fetchFromGitHub { + owner = "ivan-sincek"; + repo = "forbidden"; + rev = "refs/tags/v${version}"; + hash = "sha256-jitmgN+We6m5CTgRc1NYwZkg5GYvD6ZlJ8FKtTa+rAY="; + }; + + pythonRemoveDeps = [ + # https://github.com/ivan-sincek/forbidden/pull/3 + "argparse" + ]; + + build-system = with python3.pkgs; [ + pythonRelaxDepsHook + setuptools + ]; + + dependencies = with python3.pkgs; [ + colorama + datetime + pycurl + pyjwt + regex + requests + tabulate + termcolor + ]; + + pythonImportsCheck = [ + "forbidden" + ]; + + meta = with lib; { + description = "Tool to bypass 4xx HTTP response status code"; + homepage = "https://github.com/ivan-sincek/forbidden"; + changelog = "https://github.com/ivan-sincek/forbidden/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + mainProgram = "forbidden"; + }; +} |