depot/third_party/nixpkgs/pkgs/development/python-modules/flask-compress/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

43 lines
803 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, setuptools-scm
, flask
, brotli
, pytestCheckHook
}:
buildPythonPackage rec {
version = "1.11";
pname = "Flask-Compress";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-9WnzLERtayXKjjR9UAOgUxgR73MmeABbADb8HJ6xwhw=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
flask
brotli
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"flask_compress"
];
meta = with lib; {
description = "Compress responses in your Flask app with gzip";
homepage = "https://github.com/colour-science/flask-compress";
changelog = "https://github.com/colour-science/flask-compress/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
};
}