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 ] 30 ++ python-socks.optional-dependencies.asyncio; 31 32 # Checks needs internet access 33 doCheck = false; 34 35 pythonImportsCheck = [ "aiohttp_socks" ]; 36 37 meta = { 38 description = "SOCKS proxy connector for aiohttp"; 39 homepage = "https://github.com/romis2012/aiohttp-socks"; 40 changelog = "https://github.com/romis2012/aiohttp-socks/releases/tag/v${version}"; 41 license = lib.licenses.asl20; 42 maintainers = [ ]; 43 }; 44}