2022-05-19 02:19:04 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
django,
|
|
|
|
django-allauth,
|
|
|
|
djangorestframework,
|
|
|
|
drf-jwt,
|
|
|
|
responses,
|
|
|
|
six,
|
2019-01-21 11:28:44 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-rest-auth";
|
2019-04-16 19:15:35 +02:00
|
|
|
version = "0.9.5";
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2019-01-21 11:28:44 +01:00
|
|
|
|
2022-05-19 02:19:04 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Tivix";
|
|
|
|
repo = "django-rest-auth";
|
|
|
|
rev = version;
|
2023-03-03 01:48:06 +01:00
|
|
|
hash = "sha256-rCChUHv8sTEFErDCZnPN5b5XVtMJ7JNVZwBYF3d99mY=";
|
2019-01-21 11:28:44 +01:00
|
|
|
};
|
|
|
|
|
2022-05-19 02:19:04 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "djangorestframework-jwt" "drf-jwt"
|
|
|
|
'';
|
2019-01-21 11:28:44 +01:00
|
|
|
|
2022-05-19 02:19:04 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
djangorestframework
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-05-19 02:19:04 +02:00
|
|
|
django-allauth
|
|
|
|
drf-jwt
|
|
|
|
responses
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests are icnompatible with current django version
|
2019-01-21 11:28:44 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-05-19 02:19:04 +02:00
|
|
|
pythonImportsCheck = [ "rest_auth" ];
|
|
|
|
|
2019-01-21 11:28:44 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Django app that makes registration and authentication easy";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/Tivix/django-rest-auth";
|
2019-01-21 11:28:44 +01:00
|
|
|
license = licenses.mit;
|
2023-07-23 19:30:22 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-01-21 11:28:44 +01:00
|
|
|
};
|
|
|
|
}
|