push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -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";
};
}