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