Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
fetchpatch,
# build-system
setuptools,
# dependencies
flask,
# tests
markdown,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flask-api";
version = "3.1";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "flask-api";
repo = "flask-api";
tag = "v${version}";
hash = "sha256-nHgeI5FLKkDp4uWO+0eaT4YSOMkeQ0wE3ffyJF+WzTM=";
};
patches = [
(fetchpatch {
# werkzeug 3.0 support
url = "https://github.com/flask-api/flask-api/commit/9c998897f67d8aa959dc3005d7d22f36568b6938.patch";
hash = "sha256-vaCZ4gVlfQXyeksA44ydkjz2FxODHt3gTTP+ukJwEGY=";
})
];
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ flask ];
nativeCheckInputs = [
markdown
pytestCheckHook
];
meta = {
homepage = "https://github.com/flask-api/flask-api";
changelog = "https://github.com/flask-api/flask-api/releases/tag/v${version}";
description = "Browsable web APIs for Flask";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ nickcao ];
};
}