Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / social-auth-app-django / default.nix
bloba8fd2503dbe0147b3035d92a898178c0b0981551
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , social-auth-core
5 , django
6 , python
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "social-auth-app-django";
12   version = "5.4.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "python-social-auth";
19     repo = "social-app-django";
20     rev = "refs/tags/${version}";
21     hash = "sha256-CZF1DA4UUnmGfdmWlBJ0zJIYx1E03a7Z7Y6WJNFU68M=";
22   };
24   propagatedBuildInputs = [
25     social-auth-core
26   ];
28   pythonImportsCheck = [
29     "social_django"
30   ];
32   nativeCheckInputs = [
33     django
34   ];
36   checkPhase = ''
37     ${python.interpreter} -m django test --settings="tests.settings"
38   '';
40   meta = with lib; {
41     description = "Module for social authentication/registration mechanism";
42     homepage = "https://github.com/python-social-auth/social-app-django";
43     changelog = "https://github.com/python-social-auth/social-app-django/blob/${version}/CHANGELOG.md";
44     license = licenses.bsd3;
45     maintainers = with maintainers; [ n0emis ];
46   };