depot/third_party/nixpkgs/pkgs/development/python-modules/aiohttp-socks/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

45 lines
856 B
Nix

{
lib,
aiohttp,
attrs,
buildPythonPackage,
fetchPypi,
python-socks,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aiohttp-socks";
version = "0.9.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit version;
pname = "aiohttp_socks";
hash = "sha256-IhWaGvAmsinP5eoAfgZbs/5WOFqVGoJiOm9FiKZ1gAM=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
attrs
python-socks
];
# Checks needs internet access
doCheck = false;
pythonImportsCheck = [ "aiohttp_socks" ];
meta = {
description = "SOCKS proxy connector for aiohttp";
homepage = "https://github.com/romis2012/aiohttp-socks";
changelog = "https://github.com/romis2012/aiohttp-socks/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = [ ];
};
}