1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 hatchling, 6 httpx, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "safehttpx"; 12 version = "0.1.6"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-s1a/yCzuOiTDlblKLb6rvtYK/xql+jtf6XxPJFbrzkI="; 18 }; 19 20 build-system = [ 21 hatchling 22 ]; 23 24 dependencies = [ 25 httpx 26 ]; 27 28 pythonImportsCheck = [ "safehttpx" ]; 29 30 doCheck = false; # require network access 31 32 meta = { 33 description = "SSRF-safe wrapper around httpx"; 34 homepage = "https://github.com/gradio-app/safehttpx"; 35 license = lib.licenses.asl20; 36 maintainers = with lib.maintainers; [ fliegendewurst ]; 37 }; 38}