2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, django-allauth
|
|
|
|
, djangorestframework
|
|
|
|
, djangorestframework-simplejwt
|
|
|
|
, responses
|
|
|
|
, unittest-xml-reporting
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dj-rest-auth";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.2.5";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iMerica";
|
|
|
|
repo = "dj-rest-auth";
|
|
|
|
rev = version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-1oxkl7MJ2wIhcHlgxnCtj9Cp8o1puzNWs+vlMyi+3RM=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "coveralls>=1.11.1" "" \
|
|
|
|
--replace "==" ">="
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
djangorestframework
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|