2018-09-28 10:54:06 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, flask, pyjwt, werkzeug, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-JWT-Extended";
|
2018-12-27 02:50:31 +00:00
|
|
|
version = "3.14.0";
|
2018-09-28 10:54:06 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-12-27 02:50:31 +00:00
|
|
|
sha256 = "133s9js7j1b2m6vv56a2xd9in0rmx5zrdp4r005qwbvr5qxld39s";
|
2018-09-28 10:54:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ flask pyjwt werkzeug ];
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "JWT extension for Flask";
|
|
|
|
homepage = https://flask-jwt-extended.readthedocs.io/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ gerschtli ];
|
|
|
|
};
|
|
|
|
}
|