Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1003 B
Nix
54 lines
1003 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
django-allauth,
|
|
djangorestframework,
|
|
drf-jwt,
|
|
responses,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-rest-auth";
|
|
version = "0.9.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Tivix";
|
|
repo = "django-rest-auth";
|
|
rev = version;
|
|
hash = "sha256-rCChUHv8sTEFErDCZnPN5b5XVtMJ7JNVZwBYF3d99mY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "djangorestframework-jwt" "drf-jwt"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
djangorestframework
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
django-allauth
|
|
drf-jwt
|
|
responses
|
|
];
|
|
|
|
# tests are icnompatible with current django version
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "rest_auth" ];
|
|
|
|
meta = with lib; {
|
|
description = "Django app that makes registration and authentication easy";
|
|
homepage = "https://github.com/Tivix/django-rest-auth";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|