2021-05-20 23:08:51 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pythonOlder, aiohttp, python-socks, attrs }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp-socks";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "0.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "aiohttp_socks";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "2215cac4891ef3fa14b7d600ed343ed0f0a670c23b10e4142aa862b3db20341a";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [ aiohttp attrs python-socks ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Checks needs internet access
|
|
|
|
doCheck = false;
|
2022-01-03 16:56:52 +00:00
|
|
|
pythonImportsCheck = [ "aiohttp_socks" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.5.3";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SOCKS proxy connector for aiohttp";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
homepage = "https://github.com/romis2012/aiohttp-socks";
|
|
|
|
};
|
|
|
|
}
|