2017-01-14 00:07:28 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, flask, oauthlib, requests_oauthlib, flask_sqlalchemy
|
|
|
|
, mock, nose}:
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "Flask-OAuthlib";
|
2018-10-24 17:50:40 +02:00
|
|
|
version = "0.9.5";
|
2017-01-14 00:07:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lepture";
|
|
|
|
repo = "flask-oauthlib";
|
|
|
|
rev = "v${version}";
|
2018-10-24 17:50:40 +02:00
|
|
|
sha256 = "1l82niwrpm7411xvwh65bj263si90kcbrbfg5fa52mpixhxcp40f";
|
2017-01-14 00:07:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ mock nose ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask flask_sqlalchemy oauthlib requests_oauthlib
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = "nosetests -d";
|
|
|
|
doCheck = false; # request mocking fails
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "OAuthlib implementation for Flask";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
homepage = https://github.com/lepture/flask-oauthlib;
|
|
|
|
};
|
|
|
|
}
|