Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 meta = with lib; {
48 changelog = "https://github.com/alandtse/auth_capture_proxy/releases/tag/v${version}";
49 description = "A proxy to capture authentication information from a webpage";
50 homepage = "https://github.com/alandtse/auth_capture_proxy";
51 license = licenses.asl20;
52 maintainers = with maintainers; [ graham33 hexa ];
53 };
54}