Unverified Commit 0e64b8d5 authored by wrvsrx's avatar wrvsrx
Browse files

python3Packages.starlette-compress: init at 0.16.0

parent 2df7d531
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  brotli,
  brotlicffi,
  starlette,
  zstandard,
  pytestCheckHook,
  httpx,
  trio,
}:

buildPythonPackage rec {
  pname = "starlette-compress";
  version = "1.6.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Zaczero";
    repo = "starlette-compress";
    tag = version;
    hash = "sha256-VEVPbCGE4BQo/0t/P785TyMHZGSKCicV6H0LbBsv8uo=";
  };

  build-system = [ hatchling ];

  dependencies = [
    brotli
    brotlicffi
    starlette
    zstandard
  ];

  checkInputs = [
    httpx
    trio
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "starlette_compress" ];

  meta = {
    description = "Compression middleware for Starlette - supporting ZStd, Brotli, and GZip";
    homepage = "https://pypi.org/p/starlette-compress";
    license = lib.licenses.bsd0;
    maintainers = with lib.maintainers; [ wrvsrx ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -16726,6 +16726,8 @@ self: super: with self; {
  starlette-admin = callPackage ../development/python-modules/starlette-admin { };
  starlette-compress = callPackage ../development/python-modules/starlette-compress { };
  starlette-context = callPackage ../development/python-modules/starlette-context { };
  starlette-wtf = callPackage ../development/python-modules/starlette-wtf { };