Merge pull request #34079 from ixxie/oauthenticator

pythonPackages.oauthenticator & dependencies
This commit is contained in:
Frederik Rietdijk
2018-02-03 12:02:56 +00:00
committed by GitHub
5 changed files with 150 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, flake8
, nose2
, mock
, requests
, pyjwt
, fetchPypi
}:
buildPythonPackage rec {
pname = "globus-sdk";
version = "1.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "1nwdhhn9ib5ln56q8h3g42dl93jl67xlxkgl1wqkh7pacg00r4vs";
};
checkPhase = ''
py.test tests
'';
# No tests in archive
doCheck = false;
checkInputs = [ flake8 nose2 mock ];
propagatedBuildInputs = [ requests pyjwt ];
meta = with lib; {
description = "A convenient Pythonic interface to Globus REST APIs, including the Transfer API and the Globus Auth API.";
homepage = https://github.com/globus/globus-sdk-python;
license = licenses.asl20;
maintainers = with maintainers; [ ixxie ];
};
}

View File

@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, six
, pyjwt
, requests
, oauthlib
, requests_oauthlib
, fetchPypi
}:
buildPythonPackage rec {
pname = "mwoauth";
version = "0.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "1krqz755415z37z1znrc77vi4xyp5ys6fnq4zwcwixjjbzddpavj";
};
# package has no tests
doCheck = false;
propagatedBuildInputs = [ six pyjwt requests oauthlib requests_oauthlib ];
meta = with lib; {
description = "A library designed to provide a simple means to performing an OAuth handshake with a MediaWiki installation with the OAuth Extension installed.";
homepage = https://github.com/mediawiki-utilities/python-mwoauth;
license = licenses.mit;
maintainers = with maintainers; [ ixxie ];
};
}

View File

@@ -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 ];
};
}

View File

@@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, pytest
, tornado
, fetchPypi
}:
buildPythonPackage rec {
pname = "pytest-tornado";
version = "0.4.5";
src = fetchPypi {
inherit pname version;
sha256 = "0b1r5im7qmbpmxhfvq13a6rp78sjjrrpysfnjkd9hggavgc75dr8";
};
# package has no tests
doCheck = false;
propagatedBuildInputs = [ pytest tornado ];
meta = with lib; {
description = "A py.test plugin providing fixtures and markers to simplify testing of asynchronous tornado applications.";
homepage = https://github.com/eugeniy/pytest-tornado;
license = licenses.asl20;
maintainers = with maintainers; [ ixxie ];
};
}