15 buildPythonPackage rec {
17 pname = "flask-compress";
20 src = fetchFromGitHub {
21 owner = "colour-science";
22 repo = "flask-compress";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-J7d/OIUsDWM6DoXS0P4EOE3k6txXKm6m4Yq/EJk6FRE=";
35 ] ++ lib.optionals (!isPyPy) [ brotli ] ++ lib.optionals isPyPy [ brotlicffi ];
37 nativeCheckInputs = [ pytestCheckHook ];
39 pythonImportsCheck = [ "flask_compress" ];
42 substituteInPlace pyproject.toml \
43 --replace-fail "setuptools_scm[toml]<8" "setuptools_scm"
47 description = "Compress responses in your Flask app with gzip, deflate or brotli";
48 homepage = "https://github.com/colour-science/flask-compress";
49 changelog = "https://github.com/colour-science/flask-compress/blob/v${version}/CHANGELOG.md";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ nickcao ];