Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / django-allauth / default.nix
blob143e76cf0d87bccae6eb9c1acad32df681f89ceb
1 { lib, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib
2 , django, python3-openid, mock, coverage }:
4 buildPythonPackage rec {
5   pname = "django-allauth";
6   version = "0.40.0";
8   # no tests on PyPI
9   src = fetchFromGitHub {
10     owner = "pennersr";
11     repo = pname;
12     rev = version;
13     sha256 = "10id4k01p1hg5agb8cmllg8mv4kc7ryl75br10idwxabqqp4vla1";
14   };
16   propagatedBuildInputs = [ requests requests_oauthlib django python3-openid ];
18   checkInputs = [ coverage mock ];
20   doCheck = false;
21   checkPhase = ''
22     cd $NIX_BUILD_TOP/$sourceRoot
23     coverage run manage.py test allauth
24   '';
26   meta = with lib; {
27     description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication";
28     homepage = "https://www.intenct.nl/projects/django-allauth";
29     license = licenses.mit;
30   };