nixpkgs-suyu/pkgs/development/python-modules/flask-compress/default.nix
2021-07-02 21:19:24 +02:00

25 lines
592 B
Nix

{ lib, fetchPypi, buildPythonPackage, flask
, brotli
}:
buildPythonPackage rec {
version = "1.10.1";
pname = "Flask-Compress";
src = fetchPypi {
inherit pname version;
sha256 = "28352387efbbe772cfb307570019f81957a13ff718d994a9125fa705efb73680";
};
postPatch = ''
sed -i -e 's/use_scm_version=.*/version="${version}",/' setup.py
'';
propagatedBuildInputs = [ flask brotli ];
meta = with lib; {
description = "Compress responses in your Flask app with gzip";
homepage = "https://libwilliam.github.io/flask-compress/";
license = licenses.mit;
};
}