diff options
Diffstat (limited to 'pkgs/development/python-modules/oauthlib/default.nix')
-rw-r--r-- | pkgs/development/python-modules/oauthlib/default.nix | 54 |
1 files changed, 30 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/oauthlib/default.nix b/pkgs/development/python-modules/oauthlib/default.nix index 9f240535256a..fbbc8a6a1ad9 100644 --- a/pkgs/development/python-modules/oauthlib/default.nix +++ b/pkgs/development/python-modules/oauthlib/default.nix @@ -1,19 +1,20 @@ -{ lib -, blinker -, buildPythonPackage -, cryptography -, fetchFromGitHub -, mock -, pyjwt -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + blinker, + buildPythonPackage, + cryptography, + fetchFromGitHub, + mock, + pyjwt, + pytestCheckHook, + pythonOlder, + setuptools, -# for passthru.tests -, django-allauth -, django-oauth-toolkit -, google-auth-oauthlib -, requests-oauthlib + # for passthru.tests + django-allauth, + django-oauth-toolkit, + google-auth-oauthlib, + requests-oauthlib, }: buildPythonPackage rec { @@ -30,31 +31,36 @@ buildPythonPackage rec { hash = "sha256-KADS1pEaLYi86LEt2VVuz8FVTBANzxC8EeQLgGMxuBU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - passthru.optional-dependencies = { + optional-dependencies = { rsa = [ cryptography ]; - signedtoken = [ cryptography pyjwt ]; + signedtoken = [ + cryptography + pyjwt + ]; signals = [ blinker ]; }; nativeCheckInputs = [ mock pytestCheckHook - ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (lib.attrValues optional-dependencies); - pythonImportsCheck = [ - "oauthlib" + disabledTests = [ + # https://github.com/oauthlib/oauthlib/issues/877 + "test_rsa_bad_keys" ]; + pythonImportsCheck = [ "oauthlib" ]; + passthru.tests = { inherit django-allauth django-oauth-toolkit google-auth-oauthlib - requests-oauthlib; + requests-oauthlib + ; }; meta = with lib; { |