nix/pkgs: add newer version of django-allauth
This commit is contained in:
parent
1ae14203fc
commit
1d41593ae2
2 changed files with 32 additions and 0 deletions
|
@ -20,5 +20,6 @@
|
|||
grafana-plugins = import ./grafana-plugins args;
|
||||
unifiHacked = import ./unifi-hack args;
|
||||
tiny-remapper = import ./tiny-remapper.nix args;
|
||||
django-allauth = pkgs.python3Packages.callPackage ./django-allauth.nix {};
|
||||
} // (import ./heptapod-runner.nix args)
|
||||
// (import ./lightspeed args)
|
||||
|
|
31
nix/pkgs/django-allauth.nix
Normal file
31
nix/pkgs/django-allauth.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue