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
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# dependencies
|
|
aiohttp,
|
|
beautifulsoup4,
|
|
httpx,
|
|
multidict,
|
|
typer,
|
|
yarl,
|
|
|
|
# tests
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "authcaptureproxy";
|
|
version = "1.3.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alandtse";
|
|
repo = "auth_capture_proxy";
|
|
tag = "v${version}";
|
|
hash = "sha256-H5Dl1incS5+lmZaLZXMCOqEIGTcTr4A5J3r3ngpDGtY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
beautifulsoup4
|
|
httpx
|
|
multidict
|
|
typer
|
|
yarl
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# test fails with frequency 1/200
|
|
# https://github.com/alandtse/auth_capture_proxy/issues/25
|
|
"test_return_timer_countdown_refresh_html"
|
|
# AttributeError: 'NoneType' object has no attribute 'get'
|
|
"test_replace_empty_action_urls"
|
|
];
|
|
|
|
pythonImportsCheck = [ "authcaptureproxy" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/alandtse/auth_capture_proxy/releases/tag/v${version}";
|
|
description = "Proxy to capture authentication information from a webpage";
|
|
mainProgram = "auth_capture_proxy";
|
|
homepage = "https://github.com/alandtse/auth_capture_proxy";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [
|
|
graham33
|
|
hexa
|
|
];
|
|
};
|
|
}
|