From f957ce45c477b37fbd6fa559c5b9fc47d1fae86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 14 Jan 2017 00:07:28 +0100 Subject: [PATCH] pythonPackages.flask_oauthlib: init at 0.9.3 --- .../python-modules/flask-oauthlib.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/flask-oauthlib.nix diff --git a/pkgs/development/python-modules/flask-oauthlib.nix b/pkgs/development/python-modules/flask-oauthlib.nix new file mode 100644 index 000000000000..83413dadb7f8 --- /dev/null +++ b/pkgs/development/python-modules/flask-oauthlib.nix @@ -0,0 +1,29 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub +, flask, oauthlib, requests_oauthlib, flask_sqlalchemy +, mock, nose}: +buildPythonPackage rec { + name = "Flask-OAuthlib-${version}"; + version = "0.9.3"; + + src = fetchFromGitHub { + owner = "lepture"; + repo = "flask-oauthlib"; + rev = "v${version}"; + sha256 = "1vnr2kmbwl6mv2fsv92jjxzfibq2m3pnbcs6ba9k32jr1ci7wfh7"; + }; + + 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; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c0f8bac35239..cb28d01b2b81 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11351,6 +11351,8 @@ in { }; }; + flask_oauthlib = callPackage ../development/python-modules/flask-oauthlib.nix { }; + flask_principal = buildPythonPackage rec { name = "Flask-Principal-${version}"; version = "0.4.0";