summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2022-05-19 01:38:33 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2022-05-19 01:38:33 +0200
commit885144b2d05342f5d3c5aebc68259ef59a7724e3 (patch)
tree011f05f530be82dc5fe6a0d00cf046219083c2df
parent7c035dbb7544ae2a9adc2320e7d84c7b7d9477ed (diff)
downloadnixpkgs-885144b2d05342f5d3c5aebc68259ef59a7724e3.tar
nixpkgs-885144b2d05342f5d3c5aebc68259ef59a7724e3.tar.gz
nixpkgs-885144b2d05342f5d3c5aebc68259ef59a7724e3.tar.bz2
nixpkgs-885144b2d05342f5d3c5aebc68259ef59a7724e3.tar.lz
nixpkgs-885144b2d05342f5d3c5aebc68259ef59a7724e3.tar.xz
nixpkgs-885144b2d05342f5d3c5aebc68259ef59a7724e3.tar.zst
nixpkgs-885144b2d05342f5d3c5aebc68259ef59a7724e3.zip
python310Packages.django-allauth: 0.47.0 -> 0.50.0, adopt
-rw-r--r--pkgs/development/python-modules/django-allauth/default.nix23
1 files changed, 16 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/django-allauth/default.nix b/pkgs/development/python-modules/django-allauth/default.nix
index 591d41a960c..16d3e88b211 100644
--- a/pkgs/development/python-modules/django-allauth/default.nix
+++ b/pkgs/development/python-modules/django-allauth/default.nix
@@ -10,7 +10,7 @@
 
 buildPythonPackage rec {
   pname = "django-allauth";
-  version = "0.47.0";
+  version = "0.50.0";
   format = "setuptools";
 
   disabled = pythonOlder "3.7";
@@ -19,18 +19,27 @@ buildPythonPackage rec {
     owner = "pennersr";
     repo = pname;
     rev = version;
-    hash = "sha256-wKrsute6TCl331UrxNEBf/zTtGnyGHsOZQwdiicbg2o=";
+    hash = "sha256-O6KEDt+Z1MJUvKXQJILqLRgNj+ZrCZjlb3CJHpRL1Kk=";
   };
 
+  postPatch = ''
+    chmod +x manage.py
+    patchShebangs manage.py
+  '';
+
   propagatedBuildInputs = [
-    requests
-    requests-oauthlib
     django
     python3-openid
+    requests
+    requests-oauthlib
   ];
 
-  # Tests requires a Django instance
-  doCheck = false;
+  checkPhase = ''
+    # test is out of date
+    rm allauth/socialaccount/providers/cern/tests.py
+
+    ./manage.py test
+  '';
 
   pythonImportsCheck = [
     "allauth"
@@ -40,6 +49,6 @@ buildPythonPackage rec {
     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; [ ];
+    maintainers = with maintainers; [ SuperSandro2000 ];
   };
 }