depot/third_party/nixpkgs/pkgs/development/python-modules/flask-compress/default.nix
Default email 634fe97655 Project import generated by Copybara.
GitOrigin-RevId: 09c38c29f2c719cd76ca17a596c2fdac9e186ceb
2021-07-03 00:11:41 -03: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;
};
}