1{ lib 2, anyio 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6, setuptools 7}: 8 9buildPythonPackage rec { 10 pname = "tiny-proxy"; 11 version = "0.2.1"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "romis2012"; 18 repo = "tiny-proxy"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-59T09qcOstl/yfzQmNlTNxGerQethZntwDAHwz/5FFM="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 propagatedBuildInputs = [ 28 anyio 29 ]; 30 31 # The tests depend on httpx-socks, whose tests depend on tiny-proxy. 32 doCheck = false; 33 34 pythonImportsCheck = [ 35 "tiny_proxy" 36 ]; 37 38 meta = with lib; { 39 description = "SOCKS5/SOCKS4/HTTP proxy server"; 40 homepage = "https://github.com/romis2012/tiny-proxy"; 41 changelog = "https://github.com/romis2012/tiny-proxy/releases/tag/v${version}"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ tjni ]; 44 }; 45}