1{ lib
2, async-timeout
3, buildPythonPackage
4, curio
5, fetchFromGitHub
6, flask
7, httpcore
8, httpx
9, pytest-asyncio
10, pytest-trio
11, pytestCheckHook
12, python-socks
13, pythonOlder
14, sniffio
15, trio
16, yarl
17}:
18
19buildPythonPackage rec {
20 pname = "httpx-socks";
21 version = "0.4.1";
22 disabled = pythonOlder "3.6";
23
24 src = fetchFromGitHub {
25 owner = "romis2012";
26 repo = pname;
27 rev = "v${version}";
28 sha256 = "1rz69z5fcw7d5nzy5q2q0r9gxrsqijgpg70cnyr5br6xnfgy01ar";
29 };
30
31 propagatedBuildInputs = [
32 async-timeout
33 curio
34 httpcore
35 httpx
36 python-socks
37 sniffio
38 trio
39 ];
40
41 checkInputs = [
42 flask
43 pytest-asyncio
44 pytest-trio
45 pytestCheckHook
46 yarl
47 ];
48
49 pythonImportsCheck = [ "httpx_socks" ];
50
51 meta = with lib; {
52 description = "Proxy (HTTP, SOCKS) transports for httpx";
53 homepage = "https://github.com/romis2012/httpx-socks";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ fab ];
56 };
57}