mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
Merge pull request #177605 from r-ryantm/auto-update/python3.10-social-auth-core
python310Packages.social-auth-core: 4.2.0 -> 4.3.0
This commit is contained in:
commit
ea5a72753f
@ -1,30 +1,65 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
|
||||||
, requests
|
|
||||||
, oauthlib
|
|
||||||
, requests-oauthlib
|
|
||||||
, pyjwt
|
|
||||||
, cryptography
|
, cryptography
|
||||||
, defusedxml
|
, defusedxml
|
||||||
, python3-openid
|
, fetchFromGitHub
|
||||||
, python-jose
|
|
||||||
, python3-saml
|
|
||||||
, pytestCheckHook
|
|
||||||
, httpretty
|
, httpretty
|
||||||
|
, lxml
|
||||||
|
, oauthlib
|
||||||
|
, pyjwt
|
||||||
|
, pytestCheckHook
|
||||||
|
, python-jose
|
||||||
|
, python3-openid
|
||||||
|
, python3-saml
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
, requests-oauthlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "social-auth-core";
|
pname = "social-auth-core";
|
||||||
version = "4.2.0";
|
version = "4.3.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "python-social-auth";
|
owner = "python-social-auth";
|
||||||
repo = "social-core";
|
repo = "social-core";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "sha256-kaL6sfAyQlzxszCEbhW7sns/mcOv0U+QgplmUd6oegQ=";
|
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
|
# Disable checking the code coverage
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace social_core/tests/requirements.txt \
|
substituteInPlace social_core/tests/requirements.txt \
|
||||||
@ -35,28 +70,13 @@ buildPythonPackage rec {
|
|||||||
--replace "{posargs:-v --cov=social_core}" "{posargs:-v}"
|
--replace "{posargs:-v --cov=social_core}" "{posargs:-v}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
pythonImportsCheck = [
|
||||||
requests
|
"social_core"
|
||||||
oauthlib
|
|
||||||
requests-oauthlib
|
|
||||||
pyjwt
|
|
||||||
cryptography
|
|
||||||
defusedxml
|
|
||||||
python3-openid
|
|
||||||
python-jose
|
|
||||||
python3-saml
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
|
||||||
pytestCheckHook
|
|
||||||
httpretty
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "social_core" ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Module for social authentication/registration mechanisms";
|
||||||
homepage = "https://github.com/python-social-auth/social-core";
|
homepage = "https://github.com/python-social-auth/social-core";
|
||||||
description = "Python Social Auth - Core";
|
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ n0emis ];
|
maintainers = with maintainers; [ n0emis ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user