summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-06-14 09:48:39 +0200
committerGitHub <noreply@github.com>2022-06-14 09:48:39 +0200
commitea5a72753f3ffa62fbdcd5750341f8b0b2d66c44 (patch)
tree6ed80b054316157b165cbe2a573405e273de9071
parent05eb51e69c993596401d0bc58ceedb5f46de40b4 (diff)
parent76d82cd78a9ac5a766ec74ff3a0c589692242848 (diff)
downloadnixpkgs-ea5a72753f3ffa62fbdcd5750341f8b0b2d66c44.tar
nixpkgs-ea5a72753f3ffa62fbdcd5750341f8b0b2d66c44.tar.gz
nixpkgs-ea5a72753f3ffa62fbdcd5750341f8b0b2d66c44.tar.bz2
nixpkgs-ea5a72753f3ffa62fbdcd5750341f8b0b2d66c44.tar.lz
nixpkgs-ea5a72753f3ffa62fbdcd5750341f8b0b2d66c44.tar.xz
nixpkgs-ea5a72753f3ffa62fbdcd5750341f8b0b2d66c44.tar.zst
nixpkgs-ea5a72753f3ffa62fbdcd5750341f8b0b2d66c44.zip
Merge pull request #177605 from r-ryantm/auto-update/python3.10-social-auth-core
python310Packages.social-auth-core: 4.2.0 -> 4.3.0
-rw-r--r--pkgs/development/python-modules/social-auth-core/default.nix76
1 files changed, 48 insertions, 28 deletions
diff --git a/pkgs/development/python-modules/social-auth-core/default.nix b/pkgs/development/python-modules/social-auth-core/default.nix
index 667c4ec4245..b00e5044c64 100644
--- a/pkgs/development/python-modules/social-auth-core/default.nix
+++ b/pkgs/development/python-modules/social-auth-core/default.nix
@@ -1,30 +1,65 @@
 { lib
 , buildPythonPackage
+, cryptography
+, defusedxml
 , fetchFromGitHub
-, requests
+, httpretty
+, lxml
 , oauthlib
-, requests-oauthlib
 , pyjwt
-, cryptography
-, defusedxml
-, python3-openid
+, pytestCheckHook
 , python-jose
+, python3-openid
 , python3-saml
-, pytestCheckHook
-, httpretty
+, pythonOlder
+, requests
+, requests-oauthlib
 }:
 
 buildPythonPackage rec {
   pname = "social-auth-core";
-  version = "4.2.0";
+  version = "4.3.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "python-social-auth";
     repo = "social-core";
-    rev = version;
-    sha256 = "sha256-kaL6sfAyQlzxszCEbhW7sns/mcOv0U+QgplmUd6oegQ=";
+    rev = "refs/tags/${version}";
+    hash = "sha256-P9IWnu1/PWVNl/tZZ4bqz0WnruKu/jXASZBoaWXWeYI=";
   };
 
+  propagatedBuildInputs = [
+    cryptography
+    defusedxml
+    oauthlib
+    pyjwt
+    python3-openid
+    requests
+    requests-oauthlib
+  ];
+
+  passthru.optional-dependencies = {
+    openidconnect = [
+      python-jose
+    ];
+    saml = [
+      lxml
+      python3-saml
+    ];
+    azuread = [
+      cryptography
+    ];
+  };
+
+  checkInputs = [
+    pytestCheckHook
+    httpretty
+  ] ++ passthru.optional-dependencies.openidconnect
+  ++ passthru.optional-dependencies.saml
+  ++ passthru.optional-dependencies.azuread;
+
   # Disable checking the code coverage
   prePatch = ''
     substituteInPlace social_core/tests/requirements.txt \
@@ -35,28 +70,13 @@ buildPythonPackage rec {
       --replace "{posargs:-v --cov=social_core}" "{posargs:-v}"
   '';
 
-  propagatedBuildInputs = [
-    requests
-    oauthlib
-    requests-oauthlib
-    pyjwt
-    cryptography
-    defusedxml
-    python3-openid
-    python-jose
-    python3-saml
-  ];
-
-  checkInputs = [
-    pytestCheckHook
-    httpretty
+  pythonImportsCheck = [
+    "social_core"
   ];
 
-  pythonImportsCheck = [ "social_core" ];
-
   meta = with lib; {
+    description = "Module for social authentication/registration mechanisms";
     homepage = "https://github.com/python-social-auth/social-core";
-    description = "Python Social Auth - Core";
     license = licenses.bsd3;
     maintainers = with maintainers; [ n0emis ];
   };