depot/third_party/nixpkgs/pkgs/development/python-modules/flask-jwt-extended/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

52 lines
968 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cryptography
, flask
, pyjwt
, pytestCheckHook
, python-dateutil
, pythonOlder
, werkzeug
}:
buildPythonPackage rec {
pname = "flask-jwt-extended";
version = "4.4.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Flask-JWT-Extended";
inherit version;
hash = "sha256-YrUh11SUwpCmRq6KzHcSNyHkNkeQ8eZK8AONgjlh+/A=";
};
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; {
description = "JWT extension for Flask";
homepage = "https://flask-jwt-extended.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ gerschtli ];
};
}