Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / flask-jwt-extended / default.nix
blob2d5537b5df69768242ffb5a04dca0da4b771aa57
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , cryptography
5 , flask
6 , pyjwt
7 , pytestCheckHook
8 , python-dateutil
9 , pythonOlder
10 , werkzeug
13 buildPythonPackage rec {
14   pname = "flask-jwt-extended";
15   version = "4.5.3";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     pname = "Flask-JWT-Extended";
22     inherit version;
23     hash = "sha256-Bh7z0l7VdDur5JZKs4822HDm0v2KEmurXXfd74oBkys=";
24   };
26   propagatedBuildInputs = [
27     flask
28     pyjwt
29     python-dateutil
30     werkzeug
31   ];
33   passthru.optional-dependencies.asymmetric_crypto = [
34     cryptography
35   ];
37   nativeCheckInputs = [
38     pytestCheckHook
39   ]
40   ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
42   pythonImportsCheck = [
43     "flask_jwt_extended"
44   ];
46   meta = with lib; {
47     changelog = "https://github.com/vimalloc/flask-jwt-extended/releases/tag/${version}";
48     description = "JWT extension for Flask";
49     homepage = "https://flask-jwt-extended.readthedocs.io/";
50     license = licenses.mit;
51     maintainers = with maintainers; [ gerschtli ];
52   };