bypass-url-parser: init at 0.4.4 (#422694)

authored by

Fabian Affolter and committed by
GitHub
a18a0ecb 129be17d

+49
+49
pkgs/by-name/by/bypass-url-parser/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + python3, 5 + }: 6 + 7 + python3.pkgs.buildPythonApplication rec { 8 + pname = "bypass-url-parser"; 9 + version = "0.4.4"; 10 + pyproject = true; 11 + 12 + src = fetchFromGitHub { 13 + owner = "laluka"; 14 + repo = "bypass-url-parser"; 15 + tag = "v${version}"; 16 + hash = "sha256-h9+kM2LmfPaaM7MK6lK/ARrArwvRn6d+3BW+rNTkqzA="; 17 + }; 18 + 19 + build-system = with python3.pkgs; [ pdm-backend ]; 20 + 21 + dependencies = with python3.pkgs; [ 22 + coloredlogs 23 + docopt 24 + ]; 25 + 26 + nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; 27 + 28 + pythonImportsCheck = [ "bypass_url_parser" ]; 29 + 30 + preCheck = '' 31 + # Some tests need the binary 32 + export PATH=$out/bin:$PATH 33 + ''; 34 + 35 + disabledTests = [ 36 + # Tests require network access 37 + "test_sample_usage" 38 + "test_sample_cli_usage" 39 + ]; 40 + 41 + meta = { 42 + description = "Tool that tests URL bypasses to reach a 40X protected page"; 43 + homepage = "https://github.com/laluka/bypass-url-parser"; 44 + changelog = "https://github.com/laluka/bypass-url-parser/releases/tag/${src.tag}"; 45 + license = lib.licenses.agpl3Plus; 46 + maintainers = with lib.maintainers; [ fab ]; 47 + mainProgram = "bypass-url-parser"; 48 + }; 49 + }