2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
attrs,
|
2024-09-19 14:19:46 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-06-05 15:53:02 +00:00
|
|
|
python-socks,
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2024-01-13 08:15:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohttp-socks";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.9.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "aiohttp_socks";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-IhWaGvAmsinP5eoAfgZbs/5WOFqVGoJiOm9FiKZ1gAM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2024-01-13 08:15:51 +00:00
|
|
|
aiohttp
|
|
|
|
attrs
|
|
|
|
python-socks
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Checks needs internet access
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aiohttp_socks" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SOCKS proxy connector for aiohttp";
|
|
|
|
homepage = "https://github.com/romis2012/aiohttp-socks";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/romis2012/aiohttp-socks/releases/tag/v${version}";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|