1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, aiohttp 6, beautifulsoup4 7, httpx 8, importlib-metadata 9, multidict 10, typer 11, yarl 12, pytest-asyncio 13, pytestCheckHook 14}: 15 16buildPythonPackage rec { 17 pname = "authcaptureproxy"; 18 version = "1.2.0"; 19 format = "pyproject"; 20 21 src = fetchFromGitHub { 22 owner = "alandtse"; 23 repo = "auth_capture_proxy"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-OY6wT0xi7f6Bn8VOL9+6kyv5cENYbrGGTWWKc6o36cw="; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 propagatedBuildInputs = [ 33 aiohttp 34 beautifulsoup4 35 httpx 36 importlib-metadata 37 multidict 38 typer 39 yarl 40 ]; 41 42 nativeCheckInputs = [ 43 pytest-asyncio 44 pytestCheckHook 45 ]; 46 47 disabledTests = [ 48 # test fails with frequency 1/200 49 # https://github.com/alandtse/auth_capture_proxy/issues/25 50 "test_return_timer_countdown_refresh_html" 51 ]; 52 53 pythonImportsCheck = [ 54 "authcaptureproxy" 55 ]; 56 57 meta = with lib; { 58 changelog = "https://github.com/alandtse/auth_capture_proxy/releases/tag/v${version}"; 59 description = "A proxy to capture authentication information from a webpage"; 60 homepage = "https://github.com/alandtse/auth_capture_proxy"; 61 license = licenses.asl20; 62 maintainers = with maintainers; [ graham33 hexa ]; 63 }; 64}