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