Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

81 lines
1.4 KiB
Nix

{
lib,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
flask,
httpcore,
httpx,
hypercorn,
pytest-asyncio,
pytest-trio,
pytestCheckHook,
python-socks,
pythonOlder,
setuptools,
starlette,
tiny-proxy,
trio,
trustme,
yarl,
}:
buildPythonPackage rec {
pname = "httpx-socks";
version = "0.10.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "romis2012";
repo = "httpx-socks";
tag = "v${version}";
hash = "sha256-1NDsIKJ8lWpjaTnlv5DrwTsEJU4gYwEUuqKpn+2QVhg=";
};
build-system = [ setuptools ];
dependencies = [
httpx
httpcore
python-socks
]
++ python-socks.optional-dependencies.asyncio;
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/${src.tag}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}