summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-02-25 15:20:28 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-03-28 08:17:05 +0200
commit247a5b0d18ae197edac8e930534686de3cb2df67 (patch)
treea179f08d32fac2af12196265d19568648bbd98d0
parent2685758bd26f69bf3bdd64c5e6db89ef41acd3fc (diff)
downloadnixpkgs-247a5b0d18ae197edac8e930534686de3cb2df67.tar
nixpkgs-247a5b0d18ae197edac8e930534686de3cb2df67.tar.gz
nixpkgs-247a5b0d18ae197edac8e930534686de3cb2df67.tar.bz2
nixpkgs-247a5b0d18ae197edac8e930534686de3cb2df67.tar.lz
nixpkgs-247a5b0d18ae197edac8e930534686de3cb2df67.tar.xz
nixpkgs-247a5b0d18ae197edac8e930534686de3cb2df67.tar.zst
nixpkgs-247a5b0d18ae197edac8e930534686de3cb2df67.zip
python3Packages.django-allauth: rename requests-oauthlib
-rw-r--r--pkgs/development/python-modules/django-allauth/default.nix36
1 files changed, 25 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/django-allauth/default.nix b/pkgs/development/python-modules/django-allauth/default.nix
index a68cfd6d9cd..591d41a960c 100644
--- a/pkgs/development/python-modules/django-allauth/default.nix
+++ b/pkgs/development/python-modules/django-allauth/default.nix
@@ -1,31 +1,45 @@
-{ lib, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib
-, django, python3-openid, mock, coverage }:
+{ lib
+, buildPythonPackage
+, django
+, fetchFromGitHub
+, python3-openid
+, pythonOlder
+, requests
+, requests-oauthlib
+}:
 
 buildPythonPackage rec {
   pname = "django-allauth";
   version = "0.47.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
-  # no tests on PyPI
   src = fetchFromGitHub {
     owner = "pennersr";
     repo = pname;
     rev = version;
-    sha256 = "sha256-wKrsute6TCl331UrxNEBf/zTtGnyGHsOZQwdiicbg2o=";
+    hash = "sha256-wKrsute6TCl331UrxNEBf/zTtGnyGHsOZQwdiicbg2o=";
   };
 
-  propagatedBuildInputs = [ requests requests_oauthlib django python3-openid ];
-
-  checkInputs = [ coverage mock ];
+  propagatedBuildInputs = [
+    requests
+    requests-oauthlib
+    django
+    python3-openid
+  ];
 
+  # Tests requires a Django instance
   doCheck = false;
-  checkPhase = ''
-    cd $NIX_BUILD_TOP/$sourceRoot
-    coverage run manage.py test allauth
-  '';
+
+  pythonImportsCheck = [
+    "allauth"
+  ];
 
   meta = with 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;
+    maintainers = with maintainers; [ ];
   };
 }