567e8dfd8e
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>
54 lines
1.0 KiB
Nix
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 ];
|
|
};
|
|
}
|