fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
47 lines
796 B
Nix
47 lines
796 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";
|
|
};
|
|
}
|