Commit 5a9982cc authored by FliegendeWurst's avatar FliegendeWurst
Browse files

python312Packages.safehttpx: init at 0.1.6

parent 844f2a5f
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  hatchling,
  httpx,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "safehttpx";
  version = "0.1.6";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-s1a/yCzuOiTDlblKLb6rvtYK/xql+jtf6XxPJFbrzkI=";
  };

  build-system = [
    hatchling
  ];

  dependencies = [
    httpx
  ];

  pythonImportsCheck = [ "safehttpx" ];

  doCheck = false; # require network access

  meta = {
    description = "SSRF-safe wrapper around httpx";
    homepage = "https://github.com/gradio-app/safehttpx";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fliegendewurst ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -14359,6 +14359,8 @@ self: super: with self; {
  safe-pysha3 = callPackage ../development/python-modules/safe-pysha3 { };
  safehttpx = callPackage ../development/python-modules/safehttpx { };
  safeio = callPackage ../development/python-modules/safeio { };
  safetensors = callPackage ../development/python-modules/safetensors { };