depot/third_party/nixpkgs/pkgs/development/python-modules/httpx-socks/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

57 lines
963 B
Nix

{ lib
, async-timeout
, buildPythonPackage
, curio
, fetchFromGitHub
, flask
, httpcore
, httpx
, pytest-asyncio
, pytest-trio
, pytestCheckHook
, python-socks
, pythonOlder
, sniffio
, trio
, yarl
}:
buildPythonPackage rec {
pname = "httpx-socks";
version = "0.4.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "romis2012";
repo = pname;
rev = "v${version}";
sha256 = "1rz69z5fcw7d5nzy5q2q0r9gxrsqijgpg70cnyr5br6xnfgy01ar";
};
propagatedBuildInputs = [
async-timeout
curio
httpcore
httpx
python-socks
sniffio
trio
];
checkInputs = [
flask
pytest-asyncio
pytest-trio
pytestCheckHook
yarl
];
pythonImportsCheck = [ "httpx_socks" ];
meta = with lib; {
description = "Proxy (HTTP, SOCKS) transports for httpx";
homepage = "https://github.com/romis2012/httpx-socks";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}