summary refs log tree commit diff
path: root/pkgs/development/python-modules/oauthenticator
diff options
context:
space:
mode:
authorMatan Shenhav <matan@fluxcraft.net>2018-01-20 13:35:03 +0000
committerMatan Shenhav <matan@fluxcraft.net>2018-02-03 11:55:04 +0000
commite4718a81bf8ba4de68d8c029edfa8491a78ec79a (patch)
tree1d54992bbb8e6d2e7256738f497409db25c9e8f6 /pkgs/development/python-modules/oauthenticator
parente2487ba88d74f9012ca717e302fbf6d6a640c7f7 (diff)
downloadnixlib-e4718a81bf8ba4de68d8c029edfa8491a78ec79a.tar
nixlib-e4718a81bf8ba4de68d8c029edfa8491a78ec79a.tar.gz
nixlib-e4718a81bf8ba4de68d8c029edfa8491a78ec79a.tar.bz2
nixlib-e4718a81bf8ba4de68d8c029edfa8491a78ec79a.tar.lz
nixlib-e4718a81bf8ba4de68d8c029edfa8491a78ec79a.tar.xz
nixlib-e4718a81bf8ba4de68d8c029edfa8491a78ec79a.tar.zst
nixlib-e4718a81bf8ba4de68d8c029edfa8491a78ec79a.zip
pythonPackages.oauthenticator: init at 0.7.2
Diffstat (limited to 'pkgs/development/python-modules/oauthenticator')
-rw-r--r--pkgs/development/python-modules/oauthenticator/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/oauthenticator/default.nix b/pkgs/development/python-modules/oauthenticator/default.nix
new file mode 100644
index 000000000000..ecb21404a085
--- /dev/null
+++ b/pkgs/development/python-modules/oauthenticator/default.nix
@@ -0,0 +1,46 @@
+{ lib
+, buildPythonPackage
+, jupyterhub
+, globus-sdk
+, mwoauth
+, codecov
+, flake8
+, pyjwt
+, pytest
+, pytestcov
+, pytest-tornado
+, requests-mock
+, pythonOlder
+, fetchPypi
+}:
+
+buildPythonPackage rec {
+  pname = "oauthenticator";
+  version = "0.7.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0rlg63ii7sxj1xad2nx6wk1xgv3a8dm0az0q9g2v6hdv9cnc4b55";
+  };
+
+  checkPhase = ''
+    py.test oauthenticator/tests
+  '';
+
+  # No tests in archive
+  doCheck = false;
+   
+  checkInputs = [  globus-sdk mwoauth codecov flake8 pytest
+    pytestcov pytest-tornado requests-mock pyjwt ];
+  
+  propagatedBuildInputs = [ jupyterhub ];
+
+  disabled = pythonOlder "3.4";
+
+  meta = with lib; {
+    description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more.";
+    homepage =  https://github.com/jupyterhub/oauthenticator;
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ ixxie ];
+  };
+}