python3Packages.starlette-compress: init at 0.16.0

This commit is contained in:
wrvsrx
2025-05-28 03:38:26 +08:00
parent 2df7d531fc
commit 0e64b8d567
2 changed files with 55 additions and 0 deletions
@@ -0,0 +1,53 @@
{
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
View File
@@ -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 { };