forked from mirrors/nixpkgs
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
44 lines
809 B
Nix
44 lines
809 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, setuptools-scm
|
|
, flask
|
|
, brotli
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.13";
|
|
pname = "Flask-Compress";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-7pbxi/mwDy3rTjQGykoFCTqoDi7wV4Ulo7TTLs3/Ep0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
brotli
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"flask_compress"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Compress responses in your Flask app with gzip";
|
|
homepage = "https://github.com/colour-science/flask-compress";
|
|
changelog = "https://github.com/colour-science/flask-compress/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
};
|
|
}
|