nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 63 lines 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, oauthlib 6, requests-oauthlib 7, pyjwt 8, cryptography 9, defusedxml 10, python3-openid 11, python-jose 12, python3-saml 13, pytestCheckHook 14, httpretty 15}: 16 17buildPythonPackage rec { 18 pname = "social-auth-core"; 19 version = "4.2.0"; 20 21 src = fetchFromGitHub { 22 owner = "python-social-auth"; 23 repo = "social-core"; 24 rev = version; 25 sha256 = "sha256-kaL6sfAyQlzxszCEbhW7sns/mcOv0U+QgplmUd6oegQ="; 26 }; 27 28 # Disable checking the code coverage 29 prePatch = '' 30 substituteInPlace social_core/tests/requirements.txt \ 31 --replace "coverage>=3.6" "" \ 32 --replace "pytest-cov>=2.7.1" "" 33 34 substituteInPlace tox.ini \ 35 --replace "{posargs:-v --cov=social_core}" "{posargs:-v}" 36 ''; 37 38 propagatedBuildInputs = [ 39 requests 40 oauthlib 41 requests-oauthlib 42 pyjwt 43 cryptography 44 defusedxml 45 python3-openid 46 python-jose 47 python3-saml 48 ]; 49 50 checkInputs = [ 51 pytestCheckHook 52 httpretty 53 ]; 54 55 pythonImportsCheck = [ "social_core" ]; 56 57 meta = with lib; { 58 homepage = "https://github.com/python-social-auth/social-core"; 59 description = "Python Social Auth - Core"; 60 license = licenses.bsd3; 61 maintainers = with maintainers; [ n0emis ]; 62 }; 63}