1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchPypi,
6 python-socks,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "aiohttp-socks";
13 version = "0.10.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchPypi {
19 inherit version;
20 pname = "aiohttp_socks";
21 hash = "sha256-SfLh+AUfKIVxm+sbd+MStaJ8Pktg8LBFo4jxlNmV4Gg=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 aiohttp
28 python-socks
29 ] ++ python-socks.optional-dependencies.asyncio;
30
31 # Checks needs internet access
32 doCheck = false;
33
34 pythonImportsCheck = [ "aiohttp_socks" ];
35
36 meta = {
37 description = "SOCKS proxy connector for aiohttp";
38 homepage = "https://github.com/romis2012/aiohttp-socks";
39 changelog = "https://github.com/romis2012/aiohttp-socks/releases/tag/v${version}";
40 license = lib.licenses.asl20;
41 maintainers = [ ];
42 };
43}