Merge pull request #174570 from SuperSandro2000/dj-rest-auth

python310Packages.dj-rest-auth: init at 2.2.4
This commit is contained in:
Sandro 2022-05-25 20:29:25 +02:00 committed by GitHub
commit fa231f67d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -2438,6 +2438,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 { };