python3Packages.social-auth-core: init at 4.2.0

This commit is contained in:
Ember 'n0emis' Keske 2022-03-05 19:23:58 +01:00
parent b168fbaaea
commit 6959e91eb6
No known key found for this signature in database
GPG key ID: 00FAF748B777CF10
2 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,63 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, oauthlib
, requests_oauthlib
, pyjwt
, cryptography
, defusedxml
, python3-openid
, python-jose
, python3-saml
, pytestCheckHook
, httpretty
}:
buildPythonPackage rec {
pname = "social-auth-core";
version = "4.2.0";
src = fetchFromGitHub {
owner = "python-social-auth";
repo = "social-core";
rev = version;
sha256 = "sha256-kaL6sfAyQlzxszCEbhW7sns/mcOv0U+QgplmUd6oegQ=";
};
# Disable checking the code coverage
prePatch = ''
substituteInPlace social_core/tests/requirements.txt \
--replace "coverage>=3.6" "" \
--replace "pytest-cov>=2.7.1" ""
substituteInPlace tox.ini \
--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" ];
meta = with lib; {
homepage = "https://github.com/python-social-auth/social-core";
description = "Python Social Auth - Core";
license = licenses.bsd3;
maintainers = with maintainers; [ n0emis ];
};
}

View file

@ -9379,6 +9379,8 @@ in {
socketio-client = callPackage ../development/python-modules/socketio-client { };
social-auth-core = callPackage ../development/python-modules/social-auth-core { };
socialscan = callPackage ../development/python-modules/socialscan { };
socid-extractor = callPackage ../development/python-modules/socid-extractor { };