diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-05-25 20:29:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 20:29:25 +0200 |
commit | fa231f67d5fad7781f3d7f6e7dc5241435b35ab1 (patch) | |
tree | 1f8df54629b0d0012ba7c3077e2bea14e01f7e8b /pkgs/development | |
parent | bc035f679270d98809091896c606d58c5f7a25a7 (diff) | |
parent | 96ce7903e86ce0f0d1d586fc63d2f86ab50cc844 (diff) |
Merge pull request #174570 from SuperSandro2000/dj-rest-auth
python310Packages.dj-rest-auth: init at 2.2.4
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/dj-rest-auth/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
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 ]; + }; +} |