2021-05-04 21:07:42 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, aiohttp
|
|
|
|
, beautifulsoup4
|
|
|
|
, httpx
|
|
|
|
, importlib-metadata
|
|
|
|
, multidict
|
|
|
|
, typer
|
|
|
|
, yarl
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "authcaptureproxy";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.2.0";
|
2021-05-04 21:07:42 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alandtse";
|
|
|
|
repo = "auth_capture_proxy";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-OY6wT0xi7f6Bn8VOL9+6kyv5cENYbrGGTWWKc6o36cw=";
|
2021-05-04 21:07:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
beautifulsoup4
|
|
|
|
httpx
|
|
|
|
importlib-metadata
|
|
|
|
multidict
|
|
|
|
typer
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-04 21:07:42 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# test fails with frequency 1/200
|
|
|
|
# https://github.com/alandtse/auth_capture_proxy/issues/25
|
|
|
|
"test_return_timer_countdown_refresh_html"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"authcaptureproxy"
|
|
|
|
];
|
|
|
|
|
2021-05-04 21:07:42 +00:00
|
|
|
meta = with lib; {
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/alandtse/auth_capture_proxy/releases/tag/v${version}";
|
2021-05-04 21:07:42 +00:00
|
|
|
description = "A proxy to capture authentication information from a webpage";
|
|
|
|
homepage = "https://github.com/alandtse/auth_capture_proxy";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ graham33 hexa ];
|
|
|
|
};
|
|
|
|
}
|