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