depot/third_party/nixpkgs/pkgs/development/python-modules/django-rest-auth/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

53 lines
1,021 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 = with maintainers; [ ];
};
}