nixpkgs-suyu/pkgs/development/python-modules/flask-jwt-extended/default.nix
Fabian Affolter 6509cea388
python310Packages.flask-jwt-extended: switch to pytestCheckHook
- disable on older Python releases
- add pythonImportsCheck
- update pname
2022-05-03 09:19:32 +02:00

46 lines
804 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flask
, pyjwt
, pytestCheckHook
, python-dateutil
, pythonOlder
, werkzeug
}:
buildPythonPackage rec {
pname = "flask-jwt-extended";
version = "4.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Flask-JWT-Extended";
inherit version;
hash = "sha256-P+gVBL3JGtjxy5db0tlexgElHzG94YQRXjn8fm7SPqY=";
};
propagatedBuildInputs = [
flask
pyjwt
python-dateutil
werkzeug
];
checkInputs = [
pytestCheckHook
];
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 ];
};
}