16 buildPythonPackage rec {
18 pname = "flask-compress";
21 src = fetchFromGitHub {
22 owner = "colour-science";
23 repo = "flask-compress";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-87fjJxaS7eJbOkSUljnhqFIeahoS4L2tAOhmv4ryVUM=";
36 ] ++ lib.optionals (!isPyPy) [ brotli ] ++ lib.optionals isPyPy [ brotlicffi ];
43 pythonImportsCheck = [ "flask_compress" ];
46 substituteInPlace pyproject.toml \
47 --replace-fail "setuptools_scm[toml]<8" "setuptools_scm"
51 description = "Compress responses in your Flask app with gzip, deflate or brotli";
52 homepage = "https://github.com/colour-science/flask-compress";
53 changelog = "https://github.com/colour-science/flask-compress/blob/v${version}/CHANGELOG.md";
54 license = lib.licenses.mit;
55 maintainers = with lib.maintainers; [ nickcao ];