depot/nix/pkgs/django-allauth.nix

32 lines
934 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib
, django, python3-openid, mock, coverage, pyjwt }:
buildPythonPackage rec {
pname = "django-allauth";
version = "0.44.0";
# no tests on PyPI
src = fetchFromGitHub {
owner = "pennersr";
repo = pname;
rev = version;
sha256 = "sha256:0fjaf6cnz08dvkribjjsmw0a0yyi6a9s3m1mmsrq2fmmdq6n031q";
};
propagatedBuildInputs = [ requests requests_oauthlib django python3-openid pyjwt ];
checkInputs = [ coverage mock ];
doCheck = false;
checkPhase = ''
cd $NIX_BUILD_TOP/$sourceRoot
coverage run manage.py test allauth
'';
meta = with stdenv.lib; {
description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication";
homepage = "https://www.intenct.nl/projects/django-allauth";
license = licenses.mit;
};
}