Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677{ lib, async-timeout, buildPythonPackage, fetchFromGitHub, flask, httpcore, httpx, hypercorn, pytest-asyncio, pytest-trio, pytestCheckHook, python-socks, setuptools, starlette, tiny-proxy, trio, trustme, yarl,}:
buildPythonPackage rec { pname = "httpx-socks"; version = "0.13.1"; pyproject = true;
src = fetchFromGitHub { owner = "romis2012"; repo = "httpx-socks"; tag = "v${version}"; hash = "sha256-sz7A72nvwy8P0VvVYUT2ZTGXXOe5u1eme7PLC38SIz8="; };
build-system = [ setuptools ];
dependencies = [ httpx httpcore python-socks ];
optional-dependencies = { asyncio = [ async-timeout ]; trio = [ trio ]; };
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ flask hypercorn pytest-asyncio pytest-trio pytestCheckHook starlette tiny-proxy trustme yarl ];
pythonImportsCheck = [ "httpx_socks" ];
disabledTests = [ # Tests don't work in the sandbox "test_proxy" "test_secure_proxy" ];
meta = { description = "Proxy (HTTP, SOCKS) transports for httpx"; homepage = "https://github.com/romis2012/httpx-socks"; changelog = "https://github.com/romis2012/httpx-socks/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; };}