2019-09-22 10:39:13 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, dateutil, flask, pyjwt, werkzeug, pytest }:
|
2018-09-28 11:54:06 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-JWT-Extended";
|
2019-11-02 23:26:50 +01:00
|
|
|
version = "3.24.1";
|
2018-09-28 11:54:06 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-02 23:26:50 +01:00
|
|
|
sha256 = "1p8rwcsscyjw2m7dbybiaflqk4z1r2d1kp9r9qqyjfzblxpyxa0a";
|
2018-09-28 11:54:06 +02:00
|
|
|
};
|
|
|
|
|
2019-09-22 10:39:13 +02:00
|
|
|
propagatedBuildInputs = [ dateutil flask pyjwt werkzeug ];
|
2018-09-28 11:54:06 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|