depot/third_party/nixpkgs/pkgs/development/python-modules/aiohttp-socks/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

50 lines
794 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
# build-system
, setuptools
# dependencies
, aiohttp
, attrs
, python-socks
}:
buildPythonPackage rec {
pname = "aiohttp-socks";
version = "0.8.4";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit version;
pname = "aiohttp_socks";
hash = "sha256-a2EdTOg46c8sL+1eDbpEfMhIJKbLqV3FdHYGIB2kbLQ=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
attrs
python-socks
];
# Checks needs internet access
doCheck = false;
pythonImportsCheck = [
"aiohttp_socks"
];
meta = {
description = "SOCKS proxy connector for aiohttp";
license = lib.licenses.asl20;
homepage = "https://github.com/romis2012/aiohttp-socks";
};
}