mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 05:54:24 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
52 lines
1004 B
Nix
52 lines
1004 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, django
|
|
, django-allauth
|
|
, djangorestframework
|
|
, drf-jwt
|
|
, responses
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-rest-auth";
|
|
version = "0.9.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Tivix";
|
|
repo = "django-rest-auth";
|
|
rev = version;
|
|
sha256 = "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; [ SuperSandro2000 ];
|
|
};
|
|
}
|