https://github.com/vimalloc/flask-jwt-extended/releases/tag/4.5.0 https://github.com/vimalloc/flask-jwt-extended/releases/tag/4.5.1 https://github.com/vimalloc/flask-jwt-extended/releases/tag/4.5.2
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cryptography
|
|
, flask
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, werkzeug
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-jwt-extended";
|
|
version = "4.5.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "Flask-JWT-Extended";
|
|
inherit version;
|
|
hash = "sha256-ulYkW6Q7cciuk2eEuGdiXc6LmVb67t7ClTIi5XlC+ws=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
pyjwt
|
|
python-dateutil
|
|
werkzeug
|
|
];
|
|
|
|
passthru.optional-dependencies.asymmetric_crypto = [
|
|
cryptography
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
]
|
|
++ lib.flatten (lib.attrValues passthru.optional-dependencies);
|
|
|
|
pythonImportsCheck = [
|
|
"flask_jwt_extended"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/vimalloc/flask-jwt-extended/releases/tag/${version}";
|
|
description = "JWT extension for Flask";
|
|
homepage = "https://flask-jwt-extended.readthedocs.io/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
};
|
|
}
|