mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
53 lines
1011 B
Nix
53 lines
1011 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; [ ];
|
|
};
|
|
}
|