python3Packages.social-auth-core: init at 4.2.0
This commit is contained in:
parent
b168fbaaea
commit
6959e91eb6
2 changed files with 65 additions and 0 deletions
63
pkgs/development/python-modules/social-auth-core/default.nix
Normal file
63
pkgs/development/python-modules/social-auth-core/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue