mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, isPyPy
|
|
, setuptools
|
|
, setuptools-scm
|
|
, flask
|
|
, brotli
|
|
, brotlicffi
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.14";
|
|
pname = "Flask-Compress";
|
|
format = "pyproject";
|
|
|
|
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 = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"flask_compress"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|