2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, django
|
|
|
|
, zstandard
|
|
|
|
, brotli
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-compression-middleware";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.5.0";
|
2023-03-04 12:14:45 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-DfUPEtd0ZZq8i7yI5MeU8nhajxHzC1uyZ8MUuF2UG3M=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
zstandard
|
|
|
|
brotli
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Django middleware to compress responses using several algorithms";
|
|
|
|
homepage = "https://github.com/friedelwolff/django-compression-middleware";
|
|
|
|
changelog = "https://github.com/friedelwolff/django-compression-middleware/releases/tag/v${version}";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ e1mo ];
|
|
|
|
};
|
|
|
|
}
|