Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 88 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ lib, async-timeout, buildPythonPackage, curio, fetchFromGitHub, flask, httpcore, httpx, hypercorn, pytest-asyncio, pytest-trio, pytestCheckHook, python-socks, pythonOlder, setuptools, sniffio, starlette, tiny-proxy, trio, trustme, yarl}:
buildPythonPackage rec { pname = "httpx-socks"; version = "0.8.0"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "romis2012"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-3Dj+rrH5Pil5xQE6sAAD5RTycwlKq+TVsAeB2NVqGjY="; };
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ httpx httpcore python-socks ];
passthru.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 = with lib; { description = "Proxy (HTTP, SOCKS) transports for httpx"; homepage = "https://github.com/romis2012/httpx-socks"; changelog = "https://github.com/romis2012/httpx-socks/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; };}