nixpkgs/pkgs/development/python-modules/python-socks/default.nix
Martin Weinelt b79da2786f Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/bundlewrap/default.nix
	pkgs/development/python-modules/coverage/default.nix
	pkgs/development/python-modules/h5netcdf/default.nix
	pkgs/development/python-modules/hypothesis/default.nix
	pkgs/development/python-modules/numba/default.nix
	pkgs/development/python-modules/optype/default.nix
	pkgs/development/python-modules/setuptools-git-versioning/default.nix
	pkgs/development/python-modules/sphinx/default.nix
2026-02-15 16:17:41 +01:00

67 lines
1.2 KiB
Nix

{
lib,
async-timeout,
buildPythonPackage,
curio,
fetchFromGitHub,
anyio,
flask,
pytest-asyncio,
pytest-trio,
pytestCheckHook,
setuptools,
trio,
trustme,
yarl,
}:
buildPythonPackage rec {
pname = "python-socks";
version = "2.8.0";
pyproject = true;
__darwinAllowLocalNetworking = true;
src = fetchFromGitHub {
owner = "romis2012";
repo = "python-socks";
tag = "v${version}";
hash = "sha256-b19DfvoJo/9NCjgZ+07WdZGnXNS7/f+FgGdU8s1k2io=";
};
build-system = [ setuptools ];
dependencies = [
trio
curio
async-timeout
];
optional-dependencies = {
trio = [ trio ];
curio = [ curio ];
anyio = [ anyio ];
};
doCheck = false; # requires tiny_proxy module
nativeCheckInputs = [
anyio
flask
pytest-asyncio
pytest-trio
pytestCheckHook
trustme
yarl
];
pythonImportsCheck = [ "python_socks" ];
meta = {
changelog = "https://github.com/romis2012/python-socks/releases/tag/${src.tag}";
description = "Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python";
homepage = "https://github.com/romis2012/python-socks";
license = lib.licenses.asl20;
maintainers = [ ];
};
}