From 96ce7903e86ce0f0d1d586fc63d2f86ab50cc844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 25 May 2022 20:01:44 +0200 Subject: [PATCH] python310Packages.dj-rest-auth: init at 2.2.4 --- .../python-modules/dj-rest-auth/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/dj-rest-auth/default.nix diff --git a/pkgs/development/python-modules/dj-rest-auth/default.nix b/pkgs/development/python-modules/dj-rest-auth/default.nix new file mode 100644 index 000000000000..d0fe922dc181 --- /dev/null +++ b/pkgs/development/python-modules/dj-rest-auth/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, django-allauth +, djangorestframework +, djangorestframework-simplejwt +, responses +, unittest-xml-reporting +}: + +buildPythonPackage rec { + pname = "dj-rest-auth"; + version = "2.2.4"; + + src = fetchFromGitHub { + owner = "iMerica"; + repo = "dj-rest-auth"; + rev = version; + sha256 = "sha256-vzcrGRaim1plksmkf8AC6sTl5P+106UG391Cy2yKQhQ="; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace "coveralls>=1.11.1" "" \ + --replace "==" ">=" + ''; + + propagatedBuildInputs = [ + djangorestframework + ]; + + checkInputs = [ + django-allauth + djangorestframework-simplejwt + responses + unittest-xml-reporting + ]; + + pythonImportsCheck = [ "dj_rest_auth" ]; + + meta = with lib; { + description = "Authentication for Django Rest Framework"; + homepage = "https://github.com/iMerica/dj-rest-auth"; + license = licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4557d81cf53a..d00e414260cf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2434,6 +2434,8 @@ in { djmail = callPackage ../development/python-modules/djmail { }; + dj-rest-auth = callPackage ../development/python-modules/dj-rest-auth { }; + dj-search-url = callPackage ../development/python-modules/dj-search-url { }; dkimpy = callPackage ../development/python-modules/dkimpy { };