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.0.1";
19 format = "pyproject";
20
21 src = fetchFromGitHub {
22 owner = "alandtse";
23 repo = "auth_capture_proxy";
24 rev = "v${version}";
25 sha256 = "1fbrmh6qa3dm3q3zdxaa0fls94wardbcvnjgwxk686wpjgs1xrs4";
26 };
27
28 postPatch = ''
29 # https://github.com/alandtse/auth_capture_proxy/issues/14
30 substituteInPlace pyproject.toml --replace \
31 "poetry.masonry.api" \
32 "poetry.core.masonry.api"
33 '';
34
35 nativeBuildInputs = [
36 poetry-core
37 ];
38
39 propagatedBuildInputs = [
40 aiohttp
41 beautifulsoup4
42 httpx
43 importlib-metadata
44 multidict
45 typer
46 yarl
47 ];
48
49 checkInputs = [
50 pytest-asyncio
51 pytestCheckHook
52 ];
53
54 meta = with lib; {
55 description = "A proxy to capture authentication information from a webpage";
56 homepage = "https://github.com/alandtse/auth_capture_proxy";
57 license = licenses.asl20;
58 maintainers = with maintainers; [ graham33 hexa ];
59 };
60}