python3Packages.oauthenticator: enable tests

This commit is contained in:
Martin Weinelt 2021-02-12 02:07:14 +01:00
parent 515a3e0026
commit d51d55cc7f
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,41 +1,42 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, jupyterhub
, globus-sdk
, mwoauth
, codecov
, flake8
, pyjwt
, pytest
, pytestcov
, pytest-tornado
, requests-mock
, pythonOlder , pythonOlder
, fetchPypi , fetchPypi
, google_api_python_client
, google-auth-oauthlib
, jupyterhub
, mwoauth
, pyjwt
, pytest-asyncio
, pytestCheckHook
, requests-mock
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "oauthenticator"; pname = "oauthenticator";
version = "0.13.0"; version = "0.13.0";
disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "5202adcd96ddbbccbc267da02f2d14e977300c81291aaa77be4fd9f2e27cfa37"; sha256 = "5202adcd96ddbbccbc267da02f2d14e977300c81291aaa77be4fd9f2e27cfa37";
}; };
checkPhase = '' propagatedBuildInputs = [
py.test oauthenticator/tests jupyterhub
''; ];
# No tests in archive pytestFlagsArray = [ "oauthenticator/tests" ];
doCheck = false;
checkInputs = [ globus-sdk mwoauth codecov flake8 pytest checkInputs = [
pytestcov pytest-tornado requests-mock pyjwt ]; google_api_python_client
google-auth-oauthlib
propagatedBuildInputs = [ jupyterhub ]; mwoauth
pyjwt
disabled = pythonOlder "3.4"; pytest-asyncio
pytestCheckHook
requests-mock
];
meta = with lib; { meta = with lib; {
description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more."; description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more.";