depot/third_party/nixpkgs/pkgs/development/python-modules/aiohttp-socks/default.nix

48 lines
796 B
Nix
Raw Normal View History

{
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";
};
}