nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, django
4, fetchFromGitHub
5, python3-openid
6, pythonOlder
7, requests
8, requests-oauthlib
9}:
10
11buildPythonPackage rec {
12 pname = "django-allauth";
13 version = "0.47.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "pennersr";
20 repo = pname;
21 rev = version;
22 hash = "sha256-wKrsute6TCl331UrxNEBf/zTtGnyGHsOZQwdiicbg2o=";
23 };
24
25 propagatedBuildInputs = [
26 requests
27 requests-oauthlib
28 django
29 python3-openid
30 ];
31
32 # Tests requires a Django instance
33 doCheck = false;
34
35 pythonImportsCheck = [
36 "allauth"
37 ];
38
39 meta = with lib; {
40 description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication";
41 homepage = "https://www.intenct.nl/projects/django-allauth";
42 license = licenses.mit;
43 maintainers = with maintainers; [ ];
44 };
45}