3
0
Fork 0
forked from mirrors/nixpkgs

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
commit fa71b1ab2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 ];
};
}

View file

@ -225,6 +225,8 @@ in {
diff-match-patch = callPackage ../development/python-modules/diff-match-patch { };
globus-sdk = callPackage ../development/python-modules/globus-sdk { };
gssapi = callPackage ../development/python-modules/gssapi { };
h5py = callPackage ../development/python-modules/h5py {
@ -243,6 +245,8 @@ in {
mpi = pkgs.openmpi;
};
mwoauth = callPackage ../development/python-modules/mwoauth { };
neuron = pkgs.neuron.override {
inherit python;
};
@ -261,6 +265,8 @@ in {
ntlm-auth = callPackage ../development/python-modules/ntlm-auth { };
oauthenticator = callPackage ../development/python-modules/oauthenticator { };
plantuml = callPackage ../tools/misc/plantuml { };
Pmw = callPackage ../development/python-modules/Pmw { };
@ -342,6 +348,8 @@ in {
slurm = pkgs.slurm;
};
pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };
python-sql = callPackage ../development/python-modules/python-sql { };
python-stdnum = callPackage ../development/python-modules/python-stdnum { };