2018-09-28 10:54:06 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, flask, pyjwt, werkzeug, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-JWT-Extended";
|
2019-02-14 07:37:15 +00:00
|
|
|
version = "3.17.0";
|
2018-09-28 10:54:06 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:15 +00:00
|
|
|
sha256 = "97c66f197b4b175173bf955b9a845d03d62e521e512e88f6abff707e6859e7c3";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|