Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / oauthenticator / default.nix
blob839582e87f0d23e18531cdf5e87a1f6af8ee5e91
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchPypi
5 , google-api-python-client
6 , google-auth-oauthlib
7 , jupyterhub
8 , mwoauth
9 , pyjwt
10 , pytest-asyncio
11 , pytestCheckHook
12 , requests-mock
15 buildPythonPackage rec {
16   pname = "oauthenticator";
17   version = "0.13.0";
18   disabled = pythonOlder "3.6";
20   src = fetchPypi {
21     inherit pname version;
22     sha256 = "5202adcd96ddbbccbc267da02f2d14e977300c81291aaa77be4fd9f2e27cfa37";
23   };
25   propagatedBuildInputs = [
26     jupyterhub
27   ];
29   pytestFlagsArray = [ "oauthenticator/tests" ];
31   checkInputs = [
32     google-api-python-client
33     google-auth-oauthlib
34     mwoauth
35     pyjwt
36     pytest-asyncio
37     pytestCheckHook
38     requests-mock
39   ];
41   meta = with lib; {
42     description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more.";
43     homepage =  "https://github.com/jupyterhub/oauthenticator";
44     license = licenses.bsd3;
45     maintainers = with maintainers; [ ixxie ];
46   };