From 84ff745fdc829575eb9379ddac62738512ed95d5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 5 Jul 2025 14:02:41 +0200 Subject: [PATCH] bypass-url-parser: init at 0.4.4 Tool that tests URL bypasses to reach a 40X protected page https://github.com/laluka/bypass-url-parser --- pkgs/by-name/by/bypass-url-parser/package.nix | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/by/bypass-url-parser/package.nix diff --git a/pkgs/by-name/by/bypass-url-parser/package.nix b/pkgs/by-name/by/bypass-url-parser/package.nix new file mode 100644 index 000000000000..53d901f921aa --- /dev/null +++ b/pkgs/by-name/by/bypass-url-parser/package.nix @@ -0,0 +1,49 @@ +{ + lib, + fetchFromGitHub, + python3, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "bypass-url-parser"; + version = "0.4.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "laluka"; + repo = "bypass-url-parser"; + tag = "v${version}"; + hash = "sha256-h9+kM2LmfPaaM7MK6lK/ARrArwvRn6d+3BW+rNTkqzA="; + }; + + build-system = with python3.pkgs; [ pdm-backend ]; + + dependencies = with python3.pkgs; [ + coloredlogs + docopt + ]; + + nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; + + pythonImportsCheck = [ "bypass_url_parser" ]; + + preCheck = '' + # Some tests need the binary + export PATH=$out/bin:$PATH + ''; + + disabledTests = [ + # Tests require network access + "test_sample_usage" + "test_sample_cli_usage" + ]; + + meta = { + description = "Tool that tests URL bypasses to reach a 40X protected page"; + homepage = "https://github.com/laluka/bypass-url-parser"; + changelog = "https://github.com/laluka/bypass-url-parser/releases/tag/${src.tag}"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "bypass-url-parser"; + }; +}