1{ lib
2, async-timeout
3, buildPythonPackage
4, curio
5, fetchFromGitHub
6, flask
7, pytest-asyncio
8, pytest-trio
9, pythonOlder
10, pytestCheckHook
11, trio
12, yarl
13}:
14
15buildPythonPackage rec {
16 pname = "python-socks";
17 version = "2.0.3";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.6.1";
21
22 __darwinAllowLocalNetworking = true;
23
24 src = fetchFromGitHub {
25 owner = "romis2012";
26 repo = pname;
27 rev = "v${version}";
28 sha256 = "sha256-tVoBon9HF9MTOK+dN9g58fQO706ElNlCeULx//7hPWA=";
29 };
30
31 propagatedBuildInputs = [
32 trio
33 curio
34 async-timeout
35 ];
36
37 checkInputs = [
38 flask
39 pytest-asyncio
40 pytest-trio
41 pytestCheckHook
42 yarl
43 ];
44
45 pythonImportsCheck = [
46 "python_socks"
47 ];
48
49 meta = with lib; {
50 description = "Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python";
51 homepage = "https://github.com/romis2012/python-socks";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ ];
54 };
55}