python3Packages.starlette-compress: init at 0.16.0
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user