Skip to content

Commit

Permalink
Merge pull request NixOS#256133 from NickCao/flask-compress
Browse files Browse the repository at this point in the history
python310Packages.flask-compress: 1.13 -> 1.14
  • Loading branch information
fabaff authored Sep 20, 2023
2 parents 4d3ba96 + 8c6c3fb commit a0effe1
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions pkgs/development/python-modules/flask-compress/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,38 @@
{ lib
, fetchPypi
, fetchFromGitHub
, buildPythonPackage
, isPyPy
, setuptools
, setuptools-scm
, flask
, brotli
, brotlicffi
, pytestCheckHook
}:

buildPythonPackage rec {
version = "1.13";
version = "1.14";
pname = "Flask-Compress";
format = "pyproject";

src = fetchPypi {
inherit pname version;
hash = "sha256-7pbxi/mwDy3rTjQGykoFCTqoDi7wV4Ulo7TTLs3/Ep0=";
src = fetchFromGitHub {
owner = "colour-science";
repo = "flask-compress";
rev = "refs/tags/v${version}";
hash = "sha256-eP6i4h+O4vkjlhfy3kyB+PY7iHVzOnRBRD8lj5yHehU=";
};

nativeBuildInputs = [
setuptools
setuptools-scm
];

propagatedBuildInputs = [
flask
] ++ lib.optionals (!isPyPy) [
brotli
] ++ lib.optionals isPyPy [
brotlicffi
];

nativeCheckInputs = [
Expand All @@ -34,10 +43,13 @@ buildPythonPackage rec {
"flask_compress"
];

env.SETUPTOOLS_SCM_PRETEND_VERSION = version;

meta = with lib; {
description = "Compress responses in your Flask app with gzip";
description = "Compress responses in your Flask app with gzip, deflate or brotli";
homepage = "https://github.com/colour-science/flask-compress";
changelog = "https://github.com/colour-science/flask-compress/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ nickcao ];
};
}

0 comments on commit a0effe1

Please sign in to comment.