Files
nixpkgs/pkgs/development/python-modules/flask-jwt-extended/default.nix
T
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

54 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
cryptography,
flask,
pyjwt,
pytestCheckHook,
python-dateutil,
pythonOlder,
setuptools,
werkzeug,
}:
buildPythonPackage rec {
pname = "flask-jwt-extended";
version = "4.7.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "flask_jwt_extended";
inherit version;
hash = "sha256-gIXWdXUFtvMpGiY4yE0gfo8K0N5mLR9Gqi935ligyXY=";
};
build-system = [ setuptools ];
dependencies = [
flask
pyjwt
python-dateutil
werkzeug
];
optional-dependencies.asymmetric_crypto = [ cryptography ];
nativeCheckInputs = [
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "flask_jwt_extended" ];
meta = {
changelog = "https://github.com/vimalloc/flask-jwt-extended/releases/tag/${version}";
description = "JWT extension for Flask";
homepage = "https://flask-jwt-extended.readthedocs.io/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gerschtli ];
};
}